#7D51CB#7D51CB
#7D51CB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.181 H 296.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #7D51CB |
|---|---|
| RGB | rgb(125, 81, 203) |
| HSL | hsl(262, 54%, 56%) |
| HSV | hsv(262, 60%, 80%) |
| CMYK | cmyk(38.4%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(45.02, 44.80, -57.04) |
| CIE-LCH | lch(45.02, 72.53, 308.14°) |
| OKLab | oklab(54.51% 0.081 -0.1622) |
| OKLCH | oklch(54.51% 0.181 296.5) |
| XYZ | xyz(22.1766, 14.5562, 58.1296) |
| Luminance | 0.1456 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 4.21
Purpley
#8756E4
ΔE00 4.31
Slate Blue
#6A5ACD
ΔE00 4.63
Royal Purple
#7851A9
ΔE00 5.69
Iris
#6258C4
ΔE00 5.72
Bluey Purple
#6241C7
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D51CB #9FCB51
analogous
#5162CB #7D51CB #BA51CB
triadic
#7D51CB #CB7D51 #51CB7D
tetradic
#7D51CB #CB5162 #9FCB51 #51CBBA
square
#7D51CB #CB5162 #9FCB51 #51CBBA
split-complementary
#7D51CB #CBBA51 #62CB51
monochromatic
#45257C #5F33AC #7D51CB #A080D9 #C3AFE7
Accessibility & contrast
On white
5.37
#7D51CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#7D51CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D51CB
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D51CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D51CB | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#1969C8
Tritanopia (blue-blind)
#6A6C86
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7d51cb; /* rgb */ color: rgb(125, 81, 203); /* oklch */ color: oklch(54.5% 0.181 296.5);
Tailwind
colors: {
custom: {
50: '#a884dc',
500: '#7d51cb',
950: '#000000',
},
}SCSS
$custom: #7d51cb; $custom-light: #a884dc; $custom-dark: #000000;
JSON
{
"hex": "#7d51cb",
"rgb": {
"r": 125,
"g": 81,
"b": 203
},
"hsl": {
"h": 261.639,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.54512,
"c": 0.18132,
"h": 296.5
},
"luminance": 0.14557
}Semantic roles & 50–950 ramp
primary
#7D51CB
secondary
#C3D5A3
accent
#DD4AA8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83