#7F45CA#7F45CA
#7F45CA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.197 H 299.7°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).
Color values
| HEX | #7F45CA |
|---|---|
| RGB | rgb(127, 69, 202) |
| HSL | hsl(266, 56%, 53%) |
| HSV | hsv(266, 66%, 79%) |
| CMYK | cmyk(37.1%, 65.8%, 0%, 20.8%) |
| CIE-LAB | lab(42.81, 51.33, -60.02) |
| CIE-LCH | lch(42.81, 78.98, 310.54°) |
| OKLab | oklab(52.94% 0.0973 -0.1709) |
| OKLCH | oklch(52.94% 0.197 299.7) |
| XYZ | xyz(21.5386, 13.0323, 57.2464) |
| Luminance | 0.1303 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.81
Bluish Purple
#703BE7
ΔE00 4.99
Darkorchid
#9932CC
ΔE00 5.14
Bluey Purple
#6241C7
ΔE00 5.19
Purpley
#8756E4
ΔE00 6.15
Burple
#6832E3
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F45CA #90CA45
analogous
#454DCA #7F45CA #C145CA
triadic
#7F45CA #CA7F45 #45CA7F
tetradic
#7F45CA #CA454D #90CA45 #45CAC1
square
#7F45CA #CA454D #90CA45 #45CAC1
split-complementary
#7F45CA #CAC145 #4DCA45
monochromatic
#452174 #612FA3 #7F45CA #A075D8 #C1A4E5
Accessibility & contrast
On white
5.82
#7F45CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#7F45CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F45CA
5.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F45CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F45CA | 1.00 | 5.82 | 3.61 | 5.82 |
| #FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#6E6382
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7f45ca; /* rgb */ color: rgb(127, 69, 202); /* oklch */ color: oklch(52.9% 0.197 299.7);
Tailwind
colors: {
custom: {
50: '#a97cdb',
500: '#7f45ca',
950: '#000000',
},
}SCSS
$custom: #7f45ca; $custom-light: #a97cdb; $custom-dark: #000000;
JSON
{
"hex": "#7f45ca",
"rgb": {
"r": 127,
"g": 69,
"b": 202
},
"hsl": {
"h": 266.165,
"s": 55.649,
"l": 53.137
},
"oklch": {
"l": 0.5294,
"c": 0.19667,
"h": 299.7
},
"luminance": 0.13033
}Semantic roles & 50–950 ramp
primary
#7F45CA
secondary
#B9D299
accent
#DF499D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83