#7F37B2#7F37B2
#7F37B2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.189 H 307.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).
Color values
| HEX | #7F37B2 |
|---|---|
| RGB | rgb(127, 55, 178) |
| HSL | hsl(275, 53%, 46%) |
| HSV | hsv(275, 69%, 70%) |
| CMYK | cmyk(28.7%, 69.1%, 0%, 30.2%) |
| CIE-LAB | lab(38.65, 52.36, -52.70) |
| CIE-LCH | lch(38.65, 74.29, 314.82°) |
| OKLab | oklab(49.42% 0.1154 -0.1493) |
| OKLCH | oklch(49.42% 0.189 307.7) |
| XYZ | xyz(18.1528, 10.4590, 43.1733) |
| Luminance | 0.1046 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.42
Purple (survey)
#7E1E9C
ΔE00 5.49
Rebeccapurple
#663399
ΔE00 5.60
Purply
#983FB2
ΔE00 5.65
Darkviolet
#9400D3
ΔE00 6.09
Royal Purple
#7851A9
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F37B2 #6AB237
analogous
#4137B2 #7F37B2 #B237A7
triadic
#7F37B2 #B27F37 #37B27F
tetradic
#7F37B2 #B24137 #6AB237 #37A7B2
square
#7F37B2 #B24137 #6AB237 #37A7B2
split-complementary
#7F37B2 #A7B237 #37B241
monochromatic
#3C1A54 #5E2983 #7F37B2 #9D5ACC #B989DB
Accessibility & contrast
On white
6.79
#7F37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#7F37B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F37B2
6.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F37B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F37B2 | 1.00 | 6.79 | 3.09 | 6.79 |
| #FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#775270
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7f37b2; /* rgb */ color: rgb(127, 55, 178); /* oklch */ color: oklch(49.4% 0.189 307.7);
Tailwind
colors: {
custom: {
50: '#a873ca',
500: '#7f37b2',
950: '#000000',
},
}SCSS
$custom: #7f37b2; $custom-light: #a873ca; $custom-dark: #000000;
JSON
{
"hex": "#7f37b2",
"rgb": {
"r": 127,
"g": 55,
"b": 178
},
"hsl": {
"h": 275.122,
"s": 52.79,
"l": 45.686
},
"oklch": {
"l": 0.49422,
"c": 0.18871,
"h": 307.7
},
"luminance": 0.10459
}Semantic roles & 50–950 ramp
primary
#7F37B2
secondary
#9DC580
accent
#DC4C88
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82