#7851CF#7851CF
#7851CF is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.186 H 293.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7851CF |
|---|---|
| RGB | rgb(120, 81, 207) |
| HSL | hsl(259, 57%, 56%) |
| HSV | hsv(259, 61%, 81%) |
| CMYK | cmyk(42%, 60.9%, 0%, 18.8%) |
| CIE-LAB | lab(44.78, 44.78, -59.76) |
| CIE-LCH | lch(44.78, 74.68, 306.85°) |
| OKLab | oklab(54.3% 0.0741 -0.1704) |
| OKLCH | oklch(54.3% 0.186 293.5) |
| XYZ | xyz(21.9476, 14.3823, 60.6391) |
| Luminance | 0.1438 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.38
Slate Blue
#6A5ACD
ΔE00 3.79
Purpley
#8756E4
ΔE00 4.28
Iris
#6258C4
ΔE00 4.92
Dark Periwinkle
#665FD1
ΔE00 5.59
Bluish Purple
#703BE7
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7851CF #A8CF51
analogous
#5169CF #7851CF #B751CF
triadic
#7851CF #CF7851 #51CF78
tetradic
#7851CF #CF5169 #A8CF51 #51CFB7
square
#7851CF #CF5169 #A8CF51 #51CFB7
split-complementary
#7851CF #CFB751 #69CF51
monochromatic
#412482 #5931B2 #7851CF #9D81DC #C2B1E9
Accessibility & contrast
On white
5.42
#7851CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#7851CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7851CF
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7851CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7851CF | 1.00 | 5.42 | 3.88 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#606D88
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7851cf; /* rgb */ color: rgb(120, 81, 207); /* oklch */ color: oklch(54.3% 0.186 293.5);
Tailwind
colors: {
custom: {
50: '#a584de',
500: '#7851cf',
950: '#000000',
},
}SCSS
$custom: #7851cf; $custom-light: #a584de; $custom-dark: #000000;
JSON
{
"hex": "#7851cf",
"rgb": {
"r": 120,
"g": 81,
"b": 207
},
"hsl": {
"h": 258.571,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.543,
"c": 0.18584,
"h": 293.5
},
"luminance": 0.14383
}Semantic roles & 50–950 ramp
primary
#7851CF
secondary
#C8D8A4
accent
#E048B1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83