#7F51CA#7F51CA
#7F51CA is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.180 H 297.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #7F51CA |
|---|---|
| RGB | rgb(127, 81, 202) |
| HSL | hsl(263, 53%, 55%) |
| HSV | hsv(263, 60%, 79%) |
| CMYK | cmyk(37.1%, 59.9%, 0%, 20.8%) |
| CIE-LAB | lab(45.17, 44.98, -56.22) |
| CIE-LCH | lch(45.17, 72.00, 308.66°) |
| OKLab | oklab(54.65% 0.0837 -0.1598) |
| OKLCH | oklch(54.65% 0.18 297.6) |
| XYZ | xyz(22.3528, 14.6608, 57.5178) |
| Luminance | 0.1466 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.34
Light Indigo
#6D5ACF
ΔE00 4.56
Slate Blue
#6A5ACD
ΔE00 5.00
Royal Purple
#7851A9
ΔE00 5.53
Iris
#6258C4
ΔE00 6.09
Deep Lavender
#8D5EB7
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F51CA #9CCA51
analogous
#515FCA #7F51CA #BB51CA
triadic
#7F51CA #CA7F51 #51CA7F
tetradic
#7F51CA #CA515F #9CCA51 #51CABB
square
#7F51CA #CA515F #9CCA51 #51CABB
split-complementary
#7F51CA #CABB51 #5FCA51
monochromatic
#46257B #6134AA #7F51CA #A280D8 #C4AFE7
Accessibility & contrast
On white
5.34
#7F51CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#7F51CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F51CA
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F51CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F51CA | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#206AC7
Tritanopia (blue-blind)
#6E6B86
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7f51ca; /* rgb */ color: rgb(127, 81, 202); /* oklch */ color: oklch(54.6% 0.180 297.6);
Tailwind
colors: {
custom: {
50: '#a984db',
500: '#7f51ca',
950: '#000000',
},
}SCSS
$custom: #7f51ca; $custom-light: #a984db; $custom-dark: #000000;
JSON
{
"hex": "#7f51ca",
"rgb": {
"r": 127,
"g": 81,
"b": 202
},
"hsl": {
"h": 262.81,
"s": 53.304,
"l": 55.49
},
"oklch": {
"l": 0.54646,
"c": 0.18034,
"h": 297.6
},
"luminance": 0.14661
}Semantic roles & 50–950 ramp
primary
#7F51CA
secondary
#C1D5A2
accent
#DD4BA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83