#7F3299#7F3299
#7F3299 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.170 H 316.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).
Color values
| HEX | #7F3299 |
|---|---|
| RGB | rgb(127, 50, 153) |
| HSL | hsl(285, 51%, 40%) |
| HSV | hsv(285, 67%, 60%) |
| CMYK | cmyk(17%, 67.3%, 0%, 40%) |
| CIE-LAB | lab(36.16, 49.16, -41.72) |
| CIE-LCH | lch(36.16, 64.48, 319.68°) |
| OKLab | oklab(47.11% 0.1231 -0.1171) |
| OKLCH | oklch(47.11% 0.17 316.4) |
| XYZ | xyz(15.6419, 9.0937, 31.0621) |
| Luminance | 0.0909 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.30
Rebeccapurple
#663399
ΔE00 5.21
Warm Purple
#952E8F
ΔE00 5.65
Darkmagenta
#8B008B
ΔE00 5.97
Purply
#983FB2
ΔE00 6.55
Barney Purple
#A00498
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F3299 #4C9932
analogous
#4B3299 #7F3299 #993280
triadic
#7F3299 #997F32 #32997F
tetradic
#7F3299 #994B32 #4C9932 #328099
square
#7F3299 #994B32 #4C9932 #328099
split-complementary
#7F3299 #809932 #32994B
monochromatic
#32143D #59236B #7F3299 #A346C2 #BA74D2
Accessibility & contrast
On white
7.45
#7F3299 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#7F3299 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F3299
7.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F3299 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F3299 | 1.00 | 7.45 | 2.82 | 7.45 |
| #FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#02509C
Deuteranopia (green-blind)
#335797
Tritanopia (blue-blind)
#7E4561
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7f3299; /* rgb */ color: rgb(127, 50, 153); /* oklch */ color: oklch(47.1% 0.170 316.4);
Tailwind
colors: {
custom: {
50: '#a770b8',
500: '#7f3299',
950: '#000000',
},
}SCSS
$custom: #7f3299; $custom-light: #a770b8; $custom-dark: #000000;
JSON
{
"hex": "#7f3299",
"rgb": {
"r": 127,
"g": 50,
"b": 153
},
"hsl": {
"h": 284.854,
"s": 50.739,
"l": 39.804
},
"oklch": {
"l": 0.47106,
"c": 0.16991,
"h": 316.4
},
"luminance": 0.09093
}Semantic roles & 50–950 ramp
primary
#7F3299
secondary
#80BA6D
accent
#DA4E71
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80