#AF5EC0#AF5EC0
#AF5EC0 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.4% C 0.165 H 320.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #AF5EC0 |
|---|---|
| RGB | rgb(175, 94, 192) |
| HSL | hsl(290, 44%, 56%) |
| HSV | hsv(290, 51%, 75%) |
| CMYK | cmyk(8.9%, 51%, 0%, 24.7%) |
| CIE-LAB | lab(52.87, 48.05, -37.85) |
| CIE-LCH | lch(52.87, 61.16, 321.77°) |
| OKLab | oklab(61.37% 0.1269 -0.1048) |
| OKLCH | oklch(61.37% 0.165 320.5) |
| XYZ | xyz(31.1952, 20.9264, 52.2549) |
| Luminance | 0.2092 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.67
Amethyst
#9B5FC0
ΔE00 4.28
Pinky Purple
#C94CBE
ΔE00 5.38
Soft Purple
#A66FB5
ΔE00 5.40
Deep Lilac
#966EBD
ΔE00 6.71
Purpley Pink
#C83CB9
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF5EC0 #6FC05E
analogous
#7E5EC0 #AF5EC0 #C05EA0
triadic
#AF5EC0 #C0AF5E #5EC0AF
tetradic
#AF5EC0 #C07E5E #6FC05E #5EA0C0
square
#AF5EC0 #C07E5E #6FC05E #5EA0C0
split-complementary
#AF5EC0 #A0C05E #5EC07E
monochromatic
#692E76 #913FA2 #AF5EC0 #C58AD1 #DBB6E2
Accessibility & contrast
On white
4.05
#AF5EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#AF5EC0 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF5EC0
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF5EC0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF5EC0 | 1.00 | 4.05 | 5.19 | 5.19 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4D78C3
Deuteranopia (green-blind)
#6681BD
Tritanopia (blue-blind)
#B06B86
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #af5ec0; /* rgb */ color: rgb(175, 94, 192); /* oklch */ color: oklch(61.4% 0.165 320.5);
Tailwind
colors: {
custom: {
50: '#c98fd3',
500: '#af5ec0',
950: '#000000',
},
}SCSS
$custom: #af5ec0; $custom-light: #c98fd3; $custom-dark: #000000;
JSON
{
"hex": "#af5ec0",
"rgb": {
"r": 175,
"g": 94,
"b": 192
},
"hsl": {
"h": 289.592,
"s": 43.75,
"l": 56.078
},
"oklch": {
"l": 0.6137,
"c": 0.16462,
"h": 320.5
},
"luminance": 0.20925
}Semantic roles & 50–950 ramp
primary
#AF5EC0
secondary
#B0D1A9
accent
#D3546A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130D14
muted
#827D83