#7F5BCC#7F5BCC
#7F5BCC is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.168 H 295.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5BCC |
|---|---|
| RGB | rgb(127, 91, 204) |
| HSL | hsl(259, 53%, 58%) |
| HSV | hsv(259, 55%, 80%) |
| CMYK | cmyk(37.7%, 55.4%, 0%, 20%) |
| CIE-LAB | lab(47.43, 39.90, -53.72) |
| CIE-LCH | lch(47.43, 66.92, 306.61°) |
| OKLab | oklab(56.35% 0.0715 -0.1524) |
| OKLCH | oklch(56.35% 0.168 295.1) |
| XYZ | xyz(23.3897, 16.3534, 59.0392) |
| Luminance | 0.1635 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.63
Purpley
#8756E4
ΔE00 3.78
Slate Blue
#6A5ACD
ΔE00 4.15
Dark Periwinkle
#665FD1
ΔE00 5.31
Deep Lavender
#8D5EB7
ΔE00 5.54
Iris
#6258C4
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5BCC #A8CC5B
analogous
#5B6FCC #7F5BCC #B75BCC
triadic
#7F5BCC #CC7F5B #5BCC7F
tetradic
#7F5BCC #CC5B6F #A8CC5B #5BCCB7
square
#7F5BCC #CC5B6F #A8CC5B #5BCCB7
split-complementary
#7F5BCC #CCB75B #6FCC5B
monochromatic
#462984 #5F37B2 #7F5BCC #A38ADB #C8B8E9
Accessibility & contrast
On white
4.92
#7F5BCC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#7F5BCC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5BCC
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5BCC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5BCC | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2571D0
Deuteranopia (green-blind)
#316FC9
Tritanopia (blue-blind)
#6C738B
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7f5bcc; /* rgb */ color: rgb(127, 91, 204); /* oklch */ color: oklch(56.4% 0.168 295.1);
Tailwind
colors: {
custom: {
50: '#a88adc',
500: '#7f5bcc',
950: '#000000',
},
}SCSS
$custom: #7f5bcc; $custom-light: #a88adc; $custom-dark: #000000;
JSON
{
"hex": "#7f5bcc",
"rgb": {
"r": 127,
"g": 91,
"b": 204
},
"hsl": {
"h": 259.115,
"s": 52.558,
"l": 57.843
},
"oklch": {
"l": 0.56352,
"c": 0.16837,
"h": 295.1
},
"luminance": 0.16354
}Semantic roles & 50–950 ramp
primary
#7F5BCC
secondary
#CAD8AB
accent
#DC4CAE
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83