#7F34B2#7F34B2
#7F34B2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.1% C 0.192 H 308.0°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7F34B2 |
|---|---|
| RGB | rgb(127, 52, 178) |
| HSL | hsl(276, 55%, 45%) |
| HSV | hsv(276, 71%, 70%) |
| CMYK | cmyk(28.7%, 70.8%, 0%, 30.2%) |
| CIE-LAB | lab(38.17, 53.73, -53.49) |
| CIE-LCH | lch(38.17, 75.81, 315.13°) |
| OKLab | oklab(49.08% 0.1186 -0.1516) |
| OKLCH | oklch(49.08% 0.192 308) |
| XYZ | xyz(18.0146, 10.1826, 43.1273) |
| Luminance | 0.1018 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 5.06
Rebeccapurple
#663399
ΔE00 5.48
Darkorchid
#9932CC
ΔE00 5.53
Darkviolet
#9400D3
ΔE00 5.79
Purply
#983FB2
ΔE00 5.94
Blueviolet
#8A2BE2
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F34B2 #67B234
analogous
#4034B2 #7F34B2 #B234A6
triadic
#7F34B2 #B27F34 #34B27F
tetradic
#7F34B2 #B24034 #67B234 #34A6B2
square
#7F34B2 #B24034 #67B234 #34A6B2
split-complementary
#7F34B2 #A6B234 #34B240
monochromatic
#3B1853 #5D2683 #7F34B2 #9D56CE #B885DB
Accessibility & contrast
On white
6.92
#7F34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#7F34B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F34B2
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F34B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F34B2 | 1.00 | 6.92 | 3.04 | 6.92 |
| #FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#125BAF
Tritanopia (blue-blind)
#77506F
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #7f34b2; /* rgb */ color: rgb(127, 52, 178); /* oklch */ color: oklch(49.1% 0.192 308.0);
Tailwind
colors: {
custom: {
50: '#a972ca',
500: '#7f34b2',
950: '#000000',
},
}SCSS
$custom: #7f34b2; $custom-light: #a972ca; $custom-dark: #000000;
JSON
{
"hex": "#7f34b2",
"rgb": {
"r": 127,
"g": 52,
"b": 178
},
"hsl": {
"h": 275.714,
"s": 54.783,
"l": 45.098
},
"oklch": {
"l": 0.49076,
"c": 0.19248,
"h": 308
},
"luminance": 0.10182
}Semantic roles & 50–950 ramp
primary
#7F34B2
secondary
#9AC57D
accent
#DE4A86
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82