#7F2FB3#7F2FB3
#7F2FB3 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.199 H 308.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2FB3 |
|---|---|
| RGB | rgb(127, 47, 179) |
| HSL | hsl(276, 58%, 44%) |
| HSV | hsv(276, 74%, 70%) |
| CMYK | cmyk(29.1%, 73.7%, 0%, 29.8%) |
| CIE-LAB | lab(37.48, 56.10, -55.19) |
| CIE-LCH | lch(37.48, 78.70, 315.47°) |
| OKLab | oklab(48.61% 0.1234 -0.1566) |
| OKLCH | oklch(48.61% 0.199 308.2) |
| XYZ | xyz(17.9039, 9.8000, 43.5875) |
| Luminance | 0.0980 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.59
Darkviolet
#9400D3
ΔE00 5.32
Rebeccapurple
#663399
ΔE00 5.47
Darkorchid
#9932CC
ΔE00 5.73
Purply
#983FB2
ΔE00 6.48
Blueviolet
#8A2BE2
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2FB3 #63B32F
analogous
#3D2FB3 #7F2FB3 #B32FA5
triadic
#7F2FB3 #B37F2F #2FB37F
tetradic
#7F2FB3 #B33D2F #63B32F #2FA5B3
square
#7F2FB3 #B33D2F #63B32F #2FA5B3
split-complementary
#7F2FB3 #A5B32F #2FB33D
monochromatic
#3A1652 #5D2283 #7F2FB3 #9D4FD1 #B87FDD
Accessibility & contrast
On white
7.09
#7F2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#7F2FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2FB3
7.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2FB3 | 1.00 | 7.09 | 2.96 | 7.09 |
| #FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#774E6F
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7f2fb3; /* rgb */ color: rgb(127, 47, 179); /* oklch */ color: oklch(48.6% 0.199 308.2);
Tailwind
colors: {
custom: {
50: '#a96fcb',
500: '#7f2fb3',
950: '#000000',
},
}SCSS
$custom: #7f2fb3; $custom-light: #a96fcb; $custom-dark: #000000;
JSON
{
"hex": "#7f2fb3",
"rgb": {
"r": 127,
"g": 47,
"b": 179
},
"hsl": {
"h": 276.364,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.48611,
"c": 0.1994,
"h": 308.2
},
"luminance": 0.098
}Semantic roles & 50–950 ramp
primary
#7F2FB3
secondary
#97C678
accent
#E24683
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82