#7F5CBB#7F5CBB
#7F5CBB is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.4% C 0.145 H 298.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5CBB |
|---|---|
| RGB | rgb(127, 92, 187) |
| HSL | hsl(262, 41%, 55%) |
| HSV | hsv(262, 51%, 73%) |
| CMYK | cmyk(32.1%, 50.8%, 0%, 26.7%) |
| CIE-LAB | lab(46.65, 34.83, -45.15) |
| CIE-LCH | lch(46.65, 57.03, 307.65°) |
| OKLab | oklab(55.45% 0.0693 -0.1273) |
| OKLCH | oklch(55.45% 0.145 298.6) |
| XYZ | xyz(21.5470, 15.7540, 48.9097) |
| Luminance | 0.1575 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.56
Royal Purple
#7851A9
ΔE00 4.40
Light Indigo
#6D5ACF
ΔE00 5.42
Slate Blue
#6A5ACD
ΔE00 5.70
Amethyst
#9B5FC0
ΔE00 6.13
Purpley
#8756E4
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5CBB #98BB5C
analogous
#5C69BB #7F5CBB #AF5CBB
triadic
#7F5CBB #BB7F5C #5CBB7F
tetradic
#7F5CBB #BB5C69 #98BB5C #5CBBAF
square
#7F5CBB #BB5C69 #98BB5C #5CBBAF
split-complementary
#7F5CBB #BBAF5C #69BB5C
monochromatic
#462E6F #61409A #7F5CBB #A187CD #C3B2DF
Accessibility & contrast
On white
5.06
#7F5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#7F5CBB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5CBB
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5CBB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5CBB | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B6FBE
Deuteranopia (green-blind)
#436EB9
Tritanopia (blue-blind)
#726E83
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7f5cbb; /* rgb */ color: rgb(127, 92, 187); /* oklch */ color: oklch(55.4% 0.145 298.6);
Tailwind
colors: {
custom: {
50: '#a78bd0',
500: '#7f5cbb',
950: '#000000',
},
}SCSS
$custom: #7f5cbb; $custom-light: #a78bd0; $custom-dark: #000000;
JSON
{
"hex": "#7f5cbb",
"rgb": {
"r": 127,
"g": 92,
"b": 187
},
"hsl": {
"h": 262.105,
"s": 41.126,
"l": 54.706
},
"oklch": {
"l": 0.55445,
"c": 0.14497,
"h": 298.6
},
"luminance": 0.15754
}Semantic roles & 50–950 ramp
primary
#7F5CBB
secondary
#BFCDA5
accent
#D157A4
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82