#7F4CDB#7F4CDB
#7F4CDB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.2% C 0.207 H 295.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4CDB |
|---|---|
| RGB | rgb(127, 76, 219) |
| HSL | hsl(261, 67%, 58%) |
| HSV | hsv(261, 65%, 86%) |
| CMYK | cmyk(42%, 65.3%, 0%, 14.1%) |
| CIE-LAB | lab(45.35, 52.11, -65.67) |
| CIE-LCH | lch(45.35, 83.83, 308.43°) |
| OKLab | oklab(55.15% 0.0879 -0.1875) |
| OKLCH | oklch(55.15% 0.207 295.1) |
| XYZ | xyz(24.1196, 14.7948, 68.5890) |
| Luminance | 0.1479 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.37
Bluish Purple
#703BE7
ΔE00 4.59
Light Indigo
#6D5ACF
ΔE00 5.07
Slate Blue
#6A5ACD
ΔE00 5.55
Blueviolet
#8A2BE2
ΔE00 5.63
Purpleish Blue
#6140EF
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4CDB #A8DB4C
analogous
#4C60DB #7F4CDB #C74CDB
triadic
#7F4CDB #DB7F4C #4CDB7F
tetradic
#7F4CDB #DB4C60 #A8DB4C #4CDBC7
square
#7F4CDB #DB4C60 #A8DB4C #4CDBC7
split-complementary
#7F4CDB #DBC74C #60DB4C
monochromatic
#461D90 #5F27C3 #7F4CDB #A37FE5 #C8B2EF
Accessibility & contrast
On white
5.30
#7F4CDB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#7F4CDB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4CDB
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4CDB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4CDB | 1.00 | 5.30 | 3.96 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#676E8D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7f4cdb; /* rgb */ color: rgb(127, 76, 219); /* oklch */ color: oklch(55.2% 0.207 295.1);
Tailwind
colors: {
custom: {
50: '#ab81e7',
500: '#7f4cdb',
950: '#000000',
},
}SCSS
$custom: #7f4cdb; $custom-light: #ab81e7; $custom-dark: #000000;
JSON
{
"hex": "#7f4cdb",
"rgb": {
"r": 127,
"g": 76,
"b": 219
},
"hsl": {
"h": 261.399,
"s": 66.512,
"l": 57.843
},
"oklch": {
"l": 0.55154,
"c": 0.20713,
"h": 295.1
},
"luminance": 0.14795
}Semantic roles & 50–950 ramp
primary
#7F4CDB
secondary
#CADEA5
accent
#E93EAC
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84