#7F37B5#7F37B5
#7F37B5 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.192 H 306.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #7F37B5 |
|---|---|
| RGB | rgb(127, 55, 181) |
| HSL | hsl(274, 53%, 46%) |
| HSV | hsv(274, 70%, 71%) |
| CMYK | cmyk(29.8%, 69.6%, 0%, 29%) |
| CIE-LAB | lab(38.87, 53.05, -54.13) |
| CIE-LCH | lch(38.87, 75.80, 314.42°) |
| OKLab | oklab(49.64% 0.115 -0.1535) |
| OKLCH | oklch(49.64% 0.192 306.8) |
| XYZ | xyz(18.4573, 10.5808, 44.7771) |
| Luminance | 0.1058 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.19
Purply
#983FB2
ΔE00 5.78
Darkviolet
#9400D3
ΔE00 5.82
Purple (survey)
#7E1E9C
ΔE00 5.82
Rebeccapurple
#663399
ΔE00 5.86
Blueviolet
#8A2BE2
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F37B5 #6DB537
analogous
#4037B5 #7F37B5 #B537AC
triadic
#7F37B5 #B57F37 #37B57F
tetradic
#7F37B5 #B54037 #6DB537 #37ACB5
square
#7F37B5 #B54037 #6DB537 #37ACB5
split-complementary
#7F37B5 #ACB537 #37B540
monochromatic
#3D1A57 #5E2986 #7F37B5 #9D5CCD #B98BDC
Accessibility & contrast
On white
6.74
#7F37B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#7F37B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F37B5
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F37B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F37B5 | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#115CB2
Tritanopia (blue-blind)
#765372
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7f37b5; /* rgb */ color: rgb(127, 55, 181); /* oklch */ color: oklch(49.6% 0.192 306.8);
Tailwind
colors: {
custom: {
50: '#a974cc',
500: '#7f37b5',
950: '#000000',
},
}SCSS
$custom: #7f37b5; $custom-light: #a974cc; $custom-dark: #000000;
JSON
{
"hex": "#7f37b5",
"rgb": {
"r": 127,
"g": 55,
"b": 181
},
"hsl": {
"h": 274.286,
"s": 53.39,
"l": 46.275
},
"oklch": {
"l": 0.4964,
"c": 0.19183,
"h": 306.8
},
"luminance": 0.10581
}Semantic roles & 50–950 ramp
primary
#7F37B5
secondary
#9FC682
accent
#DD4B89
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82