#7F51CB#7F51CB
#7F51CB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.182 H 297.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #7F51CB |
|---|---|
| RGB | rgb(127, 81, 203) |
| HSL | hsl(263, 54%, 56%) |
| HSV | hsv(263, 60%, 80%) |
| CMYK | cmyk(37.4%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(45.23, 45.24, -56.69) |
| CIE-LCH | lch(45.23, 72.53, 308.59°) |
| OKLab | oklab(54.72% 0.0836 -0.1611) |
| OKLCH | oklch(54.72% 0.182 297.4) |
| XYZ | xyz(22.4716, 14.7083, 58.1434) |
| Luminance | 0.1471 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.20
Light Indigo
#6D5ACF
ΔE00 4.51
Slate Blue
#6A5ACD
ΔE00 4.95
Royal Purple
#7851A9
ΔE00 5.68
Iris
#6258C4
ΔE00 6.08
Deep Lavender
#8D5EB7
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F51CB #9DCB51
analogous
#5160CB #7F51CB #BC51CB
triadic
#7F51CB #CB7F51 #51CB7F
tetradic
#7F51CB #CB5160 #9DCB51 #51CBBC
square
#7F51CB #CB5160 #9DCB51 #51CBBC
split-complementary
#7F51CB #CBBC51 #60CB51
monochromatic
#46257C #6133AC #7F51CB #A280D9 #C4AFE7
Accessibility & contrast
On white
5.33
#7F51CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#7F51CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F51CB
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F51CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F51CB | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#1D6AC8
Tritanopia (blue-blind)
#6D6B86
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7f51cb; /* rgb */ color: rgb(127, 81, 203); /* oklch */ color: oklch(54.7% 0.182 297.4);
Tailwind
colors: {
custom: {
50: '#a984dc',
500: '#7f51cb',
950: '#000000',
},
}SCSS
$custom: #7f51cb; $custom-light: #a984dc; $custom-dark: #000000;
JSON
{
"hex": "#7f51cb",
"rgb": {
"r": 127,
"g": 81,
"b": 203
},
"hsl": {
"h": 262.623,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.54715,
"c": 0.18154,
"h": 297.4
},
"luminance": 0.14709
}Semantic roles & 50–950 ramp
primary
#7F51CB
secondary
#C2D5A3
accent
#DD4AA6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83