---
id: Avatar
section: components
cssPrefix: pf-v6-c-avatar
---import './Avatar.css'
## Examples
### Basic usage
Avatars can be created using either an `` element with an image source, or a `
` element with custom content.
```html
```
### Color modifiers
Color modifiers add visual interest and automatically include a border. The available colors are: "red", "orangered", "orange", "yellow", "green", "teal", "blue", "purple", and "gray".
```html
```
### With initials
Display a user's initials in the avatar. It's recommended to pass only a single initial to ensure the text fits inside of the avatar.
```html
C
C
C
C
C
C
C
C
C
C
```
### Bordered
Use `.pf-m-bordered` to add a border to non-colorful avatars.
```html
```
### Size variations
Avatars support small, medium (default), large, and extra large sizes.
```html
C
C
C
C
```
## Documentation
### Overview
The avatar component provides a default SVG icon. If an image is used it should be 36px by 36px.
### Accessibility
| Attribute | Applied to | Outcome |
| -- | -- | -- |
| `alt` | `.pf-v6-c-avatar` | The alt attribute describes the appearance and function of the avatar image. **Required for image avatars** |
| `role="img"` | `.pf-v6-c-avatar` | Indicates the element represents an image. **Required for colorful avatars** |
| `aria-label` | `.pf-v6-c-avatar` | Provides an accessible name for the avatar. **Required for colorful avatars** |
| `aria-hidden="true"` | `.pf-v6-c-avatar__initials`, `