#7F5CCE#7F5CCE
#7F5CCE is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.6% C 0.169 H 294.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5CCE |
|---|---|
| RGB | rgb(127, 92, 206) |
| HSL | hsl(258, 54%, 58%) |
| HSV | hsv(258, 55%, 81%) |
| CMYK | cmyk(38.3%, 55.3%, 0%, 19.2%) |
| CIE-LAB | lab(47.78, 39.87, -54.31) |
| CIE-LCH | lch(47.78, 67.37, 306.28°) |
| OKLab | oklab(56.65% 0.0704 -0.1542) |
| OKLCH | oklch(56.65% 0.169 294.5) |
| XYZ | xyz(23.7172, 16.6220, 60.3393) |
| Luminance | 0.1662 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.57
Purpley
#8756E4
ΔE00 3.60
Slate Blue
#6A5ACD
ΔE00 4.11
Dark Periwinkle
#665FD1
ΔE00 5.13
Iris
#6258C4
ΔE00 5.75
Deep Lavender
#8D5EB7
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5CCE #ABCE5C
analogous
#5C72CE #7F5CCE #B85CCE
triadic
#7F5CCE #CE7F5C #5CCE7F
tetradic
#7F5CCE #CE5C72 #ABCE5C #5CCEB8
square
#7F5CCE #CE5C72 #ABCE5C #5CCEB8
split-complementary
#7F5CCE #CEB85C #72CE5C
monochromatic
#462987 #5E37B6 #7F5CCE #A48BDC #C9BAEA
Accessibility & contrast
On white
4.86
#7F5CCE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#7F5CCE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5CCE
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5CCE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5CCE | 1.00 | 4.86 | 4.32 | 4.86 |
| #FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2572D2
Deuteranopia (green-blind)
#3070CB
Tritanopia (blue-blind)
#6B748C
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7f5cce; /* rgb */ color: rgb(127, 92, 206); /* oklch */ color: oklch(56.6% 0.169 294.5);
Tailwind
colors: {
custom: {
50: '#a98bde',
500: '#7f5cce',
950: '#000000',
},
}SCSS
$custom: #7f5cce; $custom-light: #a98bde; $custom-dark: #000000;
JSON
{
"hex": "#7f5cce",
"rgb": {
"r": 127,
"g": 92,
"b": 206
},
"hsl": {
"h": 258.421,
"s": 53.774,
"l": 58.431
},
"oklch": {
"l": 0.56647,
"c": 0.16946,
"h": 294.5
},
"luminance": 0.16623
}Semantic roles & 50–950 ramp
primary
#7F5CCE
secondary
#CCDAAC
accent
#DD4BB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83