#7F45C2#7F45C2
#7F45C2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.188 H 301.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #7F45C2 |
|---|---|
| RGB | rgb(127, 69, 194) |
| HSL | hsl(268, 51%, 52%) |
| HSV | hsv(268, 64%, 76%) |
| CMYK | cmyk(34.5%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(42.25, 49.33, -56.28) |
| CIE-LCH | lch(42.25, 74.84, 311.23°) |
| OKLab | oklab(52.36% 0.0981 -0.1599) |
| OKLCH | oklch(52.36% 0.188 301.5) |
| XYZ | xyz(20.6158, 12.6632, 52.3866) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.10
Royal Purple
#7851A9
ΔE00 5.28
Bluey Purple
#6241C7
ΔE00 5.45
Blueviolet
#8A2BE2
ΔE00 5.52
Bluish Purple
#703BE7
ΔE00 6.01
Purply
#983FB2
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F45C2 #88C245
analogous
#454AC2 #7F45C2 #BE45C2
triadic
#7F45C2 #C27F45 #45C27F
tetradic
#7F45C2 #C2454A #88C245 #45C2BE
square
#7F45C2 #C2454A #88C245 #45C2BE
split-complementary
#7F45C2 #C2BE45 #4AC245
monochromatic
#44236A #613298 #7F45C2 #9F73D1 #BEA1E0
Accessibility & contrast
On white
5.94
#7F45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#7F45C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F45C2
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F45C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F45C2 | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#1263BF
Tritanopia (blue-blind)
#71617D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7f45c2; /* rgb */ color: rgb(127, 69, 194); /* oklch */ color: oklch(52.4% 0.188 301.5);
Tailwind
colors: {
custom: {
50: '#a97cd5',
500: '#7f45c2',
950: '#000000',
},
}SCSS
$custom: #7f45c2; $custom-light: #a97cd5; $custom-dark: #000000;
JSON
{
"hex": "#7f45c2",
"rgb": {
"r": 127,
"g": 69,
"b": 194
},
"hsl": {
"h": 267.84,
"s": 50.607,
"l": 51.569
},
"oklch": {
"l": 0.52359,
"c": 0.18762,
"h": 301.5
},
"luminance": 0.12663
}Semantic roles & 50–950 ramp
primary
#7F45C2
secondary
#B3CD96
accent
#DA4E99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83