#AF4BE2#AF4BE2
#AF4BE2 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.9% C 0.226 H 312.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4BE2 |
|---|---|
| RGB | rgb(175, 75, 226) |
| HSL | hsl(280, 72%, 59%) |
| HSV | hsv(280, 67%, 89%) |
| CMYK | cmyk(22.6%, 66.8%, 0%, 11.4%) |
| CIE-LAB | lab(51.43, 64.03, -59.54) |
| CIE-LCH | lch(51.43, 87.44, 317.08°) |
| OKLab | oklab(60.93% 0.1512 -0.168) |
| OKLCH | oklch(60.93% 0.226 312) |
| XYZ | xyz(33.9202, 19.6380, 73.9404) |
| Luminance | 0.1964 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.18
Mediumorchid
#BA55D3
ΔE00 4.35
Lighter Purple
#A55AF4
ΔE00 4.52
Neon Purple
#BC13FE
ΔE00 5.49
Hot Purple
#CB00F5
ΔE00 5.63
Bright Purple
#BE03FD
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4BE2 #7EE24B
analogous
#644BE2 #AF4BE2 #E24BCA
triadic
#AF4BE2 #E2AF4B #4BE2AF
tetradic
#AF4BE2 #E2644B #7EE24B #4BCAE2
square
#AF4BE2 #E2644B #7EE24B #4BCAE2
split-complementary
#AF4BE2 #CAE24B #4BE264
monochromatic
#6E199A #9421CF #AF4BE2 #C680EA #DEB4F3
Accessibility & contrast
On white
4.26
#AF4BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#AF4BE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF4BE2
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4BE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF4BE2 | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#3C7DDF
Tritanopia (blue-blind)
#A96A91
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #af4be2; /* rgb */ color: rgb(175, 75, 226); /* oklch */ color: oklch(60.9% 0.226 312.0);
Tailwind
colors: {
custom: {
50: '#cb84ec',
500: '#af4be2',
950: '#000000',
},
}SCSS
$custom: #af4be2; $custom-light: #cb84ec; $custom-dark: #000000;
JSON
{
"hex": "#af4be2",
"rgb": {
"r": 175,
"g": 75,
"b": 226
},
"hsl": {
"h": 279.735,
"s": 72.249,
"l": 59.02
},
"oklch": {
"l": 0.60929,
"c": 0.22599,
"h": 312
},
"luminance": 0.19637
}Semantic roles & 50–950 ramp
primary
#AF4BE2
secondary
#BBE2A7
accent
#EF3976
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84