#7F2FB2#7F2FB2
#7F2FB2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.198 H 308.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2FB2 |
|---|---|
| RGB | rgb(127, 47, 178) |
| HSL | hsl(277, 58%, 44%) |
| HSV | hsv(277, 74%, 70%) |
| CMYK | cmyk(28.7%, 73.6%, 0%, 30.2%) |
| CIE-LAB | lab(37.41, 55.88, -54.72) |
| CIE-LCH | lch(37.41, 78.21, 315.60°) |
| OKLab | oklab(48.54% 0.1236 -0.1552) |
| OKLCH | oklch(48.54% 0.198 308.5) |
| XYZ | xyz(17.8031, 9.7597, 43.0568) |
| Luminance | 0.0976 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.46
Rebeccapurple
#663399
ΔE00 5.39
Darkviolet
#9400D3
ΔE00 5.42
Darkorchid
#9932CC
ΔE00 5.81
Purply
#983FB2
ΔE00 6.45
Blueviolet
#8A2BE2
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2FB2 #62B22F
analogous
#3E2FB2 #7F2FB2 #B22FA4
triadic
#7F2FB2 #B27F2F #2FB27F
tetradic
#7F2FB2 #B23E2F #62B22F #2FA4B2
square
#7F2FB2 #B23E2F #62B22F #2FA4B2
split-complementary
#7F2FB2 #A4B22F #2FB23E
monochromatic
#3A1551 #5C2282 #7F2FB2 #9E4ED0 #B87EDD
Accessibility & contrast
On white
7.11
#7F2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#7F2FB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2FB2
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2FB2 | 1.00 | 7.11 | 2.95 | 7.11 |
| #FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0359AF
Tritanopia (blue-blind)
#774E6E
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #7f2fb2; /* rgb */ color: rgb(127, 47, 178); /* oklch */ color: oklch(48.5% 0.198 308.5);
Tailwind
colors: {
custom: {
50: '#a96fca',
500: '#7f2fb2',
950: '#000000',
},
}SCSS
$custom: #7f2fb2; $custom-light: #a96fca; $custom-dark: #000000;
JSON
{
"hex": "#7f2fb2",
"rgb": {
"r": 127,
"g": 47,
"b": 178
},
"hsl": {
"h": 276.641,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.48536,
"c": 0.19841,
"h": 308.5
},
"luminance": 0.09759
}Semantic roles & 50–950 ramp
primary
#7F2FB2
secondary
#96C677
accent
#E14683
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82