#AF4CE3#AF4CE3
#AF4CE3 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.1% C 0.226 H 311.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4CE3 |
|---|---|
| RGB | rgb(175, 76, 227) |
| HSL | hsl(279, 73%, 59%) |
| HSV | hsv(279, 67%, 89%) |
| CMYK | cmyk(22.9%, 66.5%, 0%, 11%) |
| CIE-LAB | lab(51.64, 63.80, -59.76) |
| CIE-LCH | lch(51.64, 87.42, 316.88°) |
| OKLab | oklab(61.11% 0.15 -0.1686) |
| OKLCH | oklch(61.11% 0.226 311.7) |
| XYZ | xyz(34.1262, 19.8298, 74.6880) |
| Luminance | 0.1983 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.04
Lighter Purple
#A55AF4
ΔE00 4.29
Mediumorchid
#BA55D3
ΔE00 4.34
Neon Purple
#BC13FE
ΔE00 5.57
Hot Purple
#CB00F5
ΔE00 5.73
Bright Purple
#BE03FD
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4CE3 #80E34C
analogous
#644CE3 #AF4CE3 #E34CCB
triadic
#AF4CE3 #E3AF4C #4CE3AF
tetradic
#AF4CE3 #E3644C #80E34C #4CCBE3
square
#AF4CE3 #E3644C #80E34C #4CCBE3
split-complementary
#AF4CE3 #CBE34C #4CE364
monochromatic
#6F189C #9421D1 #AF4CE3 #C781EB #DEB6F4
Accessibility & contrast
On white
4.23
#AF4CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.97
#AF4CE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF4CE3
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4CE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF4CE3 | 1.00 | 4.23 | 4.97 | 4.97 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#3C7DE0
Tritanopia (blue-blind)
#A96B92
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #af4ce3; /* rgb */ color: rgb(175, 76, 227); /* oklch */ color: oklch(61.1% 0.226 311.7);
Tailwind
colors: {
custom: {
50: '#cb85ed',
500: '#af4ce3',
950: '#000000',
},
}SCSS
$custom: #af4ce3; $custom-light: #cb85ed; $custom-dark: #000000;
JSON
{
"hex": "#af4ce3",
"rgb": {
"r": 175,
"g": 76,
"b": 227
},
"hsl": {
"h": 279.338,
"s": 72.947,
"l": 59.412
},
"oklch": {
"l": 0.61106,
"c": 0.22569,
"h": 311.7
},
"luminance": 0.19829
}Semantic roles & 50–950 ramp
primary
#AF4CE3
secondary
#BCE3A8
accent
#F03877
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84