#7F38C6#7F38C6
#7F38C6 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.208 H 302.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #7F38C6 |
|---|---|
| RGB | rgb(127, 56, 198) |
| HSL | hsl(270, 56%, 50%) |
| HSV | hsv(270, 72%, 78%) |
| CMYK | cmyk(35.9%, 71.7%, 0%, 22.4%) |
| CIE-LAB | lab(40.27, 56.59, -61.82) |
| CIE-LCH | lch(40.27, 83.81, 312.47°) |
| OKLab | oklab(51.04% 0.1113 -0.1761) |
| OKLCH | oklch(51.04% 0.208 302.3) |
| XYZ | xyz(20.3572, 11.4175, 54.5465) |
| Luminance | 0.1142 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.94
Darkorchid
#9932CC
ΔE00 4.52
Darkviolet
#9400D3
ΔE00 5.08
Bluey Purple
#6241C7
ΔE00 5.26
Bluish Purple
#703BE7
ΔE00 5.28
Burple
#6832E3
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F38C6 #7FC638
analogous
#3838C6 #7F38C6 #C638C6
triadic
#7F38C6 #C67F38 #38C67F
tetradic
#7F38C6 #C63838 #7FC638 #38C6C6
square
#7F38C6 #C63838 #7FC638 #38C6C6
split-complementary
#7F38C6 #C6C638 #38C638
monochromatic
#421D67 #602B96 #7F38C6 #9E67D4 #BC97E2
Accessibility & contrast
On white
6.40
#7F38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#7F38C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F38C6
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F38C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F38C6 | 1.00 | 6.40 | 3.28 | 6.40 |
| #FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#705B7C
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7f38c6; /* rgb */ color: rgb(127, 56, 198); /* oklch */ color: oklch(51.0% 0.208 302.3);
Tailwind
colors: {
custom: {
50: '#aa75d8',
500: '#7f38c6',
950: '#000000',
},
}SCSS
$custom: #7f38c6; $custom-light: #aa75d8; $custom-dark: #000000;
JSON
{
"hex": "#7f38c6",
"rgb": {
"r": 127,
"g": 56,
"b": 198
},
"hsl": {
"h": 270,
"s": 55.906,
"l": 49.804
},
"oklch": {
"l": 0.51036,
"c": 0.20835,
"h": 302.3
},
"luminance": 0.11418
}Semantic roles & 50–950 ramp
primary
#7F38C6
secondary
#ADCD8D
accent
#DF4994
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110915
muted
#807B83