#7F45CB#7F45CB
#7F45CB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.0% C 0.198 H 299.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #7F45CB |
|---|---|
| RGB | rgb(127, 69, 203) |
| HSL | hsl(266, 56%, 53%) |
| HSV | hsv(266, 66%, 80%) |
| CMYK | cmyk(37.4%, 66%, 0%, 20.4%) |
| CIE-LAB | lab(42.88, 51.59, -60.48) |
| CIE-LCH | lch(42.88, 79.49, 310.46°) |
| OKLab | oklab(53.01% 0.0972 -0.1723) |
| OKLCH | oklch(53.01% 0.198 299.4) |
| XYZ | xyz(21.6573, 13.0798, 57.8720) |
| Luminance | 0.1308 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.73
Bluish Purple
#703BE7
ΔE00 4.87
Darkorchid
#9932CC
ΔE00 5.17
Bluey Purple
#6241C7
ΔE00 5.18
Purpley
#8756E4
ΔE00 6.05
Burple
#6832E3
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F45CB #91CB45
analogous
#454ECB #7F45CB #C245CB
triadic
#7F45CB #CB7F45 #45CB7F
tetradic
#7F45CB #CB454E #91CB45 #45CBC2
square
#7F45CB #CB454E #91CB45 #45CBC2
split-complementary
#7F45CB #CBC245 #4ECB45
monochromatic
#452175 #612EA5 #7F45CB #A075D8 #C1A5E6
Accessibility & contrast
On white
5.81
#7F45CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#7F45CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F45CB
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F45CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F45CB | 1.00 | 5.81 | 3.62 | 5.81 |
| #FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#6E6482
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7f45cb; /* rgb */ color: rgb(127, 69, 203); /* oklch */ color: oklch(53.0% 0.198 299.4);
Tailwind
colors: {
custom: {
50: '#aa7cdc',
500: '#7f45cb',
950: '#000000',
},
}SCSS
$custom: #7f45cb; $custom-light: #aa7cdc; $custom-dark: #000000;
JSON
{
"hex": "#7f45cb",
"rgb": {
"r": 127,
"g": 69,
"b": 203
},
"hsl": {
"h": 265.97,
"s": 56.303,
"l": 53.333
},
"oklch": {
"l": 0.53014,
"c": 0.1978,
"h": 299.4
},
"luminance": 0.1308
}Semantic roles & 50–950 ramp
primary
#7F45CB
secondary
#BAD399
accent
#E0489E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83