#AD51E2#AD51E2
#AD51E2 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.218 H 310.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AD51E2 |
|---|---|
| RGB | rgb(173, 81, 226) |
| HSL | hsl(278, 71%, 60%) |
| HSV | hsv(278, 64%, 89%) |
| CMYK | cmyk(23.5%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(52.13, 60.92, -58.42) |
| CIE-LCH | lch(52.13, 84.41, 316.20°) |
| OKLab | oklab(61.38% 0.1421 -0.1648) |
| OKLCH | oklch(61.38% 0.218 310.8) |
| XYZ | xyz(33.9009, 20.2608, 74.0616) |
| Luminance | 0.2026 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.70
Lighter Purple
#A55AF4
ΔE00 3.75
Mediumorchid
#BA55D3
ΔE00 4.13
Amethyst
#9B5FC0
ΔE00 6.17
Neon Purple
#BC13FE
ΔE00 6.37
Hot Purple
#CB00F5
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AD51E2 #86E251
analogous
#6451E2 #AD51E2 #E251CF
triadic
#AD51E2 #E2AD51 #51E2AD
tetradic
#AD51E2 #E26451 #86E251 #51CFE2
square
#AD51E2 #E26451 #86E251 #51CFE2
split-complementary
#AD51E2 #CFE251 #51E264
monochromatic
#6E1A9E #9323D3 #AD51E2 #C685EB #DEBAF3
Accessibility & contrast
On white
4.16
#AD51E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#AD51E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AD51E2
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AD51E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AD51E2 | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#A66E93
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #ad51e2; /* rgb */ color: rgb(173, 81, 226); /* oklch */ color: oklch(61.4% 0.218 310.8);
Tailwind
colors: {
custom: {
50: '#c987ec',
500: '#ad51e2',
950: '#000000',
},
}SCSS
$custom: #ad51e2; $custom-light: #c987ec; $custom-dark: #000000;
JSON
{
"hex": "#ad51e2",
"rgb": {
"r": 173,
"g": 81,
"b": 226
},
"hsl": {
"h": 278.069,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.61381,
"c": 0.21758,
"h": 310.8
},
"luminance": 0.2026
}Semantic roles & 50–950 ramp
primary
#AD51E2
secondary
#C0E3AC
accent
#D31259
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84