#7F2CAF#7F2CAF
#7F2CAF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.199 H 309.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2CAF |
|---|---|
| RGB | rgb(127, 44, 175) |
| HSL | hsl(278, 60%, 43%) |
| HSV | hsv(278, 75%, 69%) |
| CMYK | cmyk(27.4%, 74.9%, 0%, 31.4%) |
| CIE-LAB | lab(36.76, 56.43, -53.98) |
| CIE-LCH | lch(36.76, 78.10, 316.27°) |
| OKLab | oklab(48.01% 0.127 -0.153) |
| OKLCH | oklch(48.01% 0.199 309.7) |
| XYZ | xyz(17.3894, 9.4089, 41.4492) |
| Luminance | 0.0941 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.76
Rebeccapurple
#663399
ΔE00 5.20
Darkviolet
#9400D3
ΔE00 5.60
Darkorchid
#9932CC
ΔE00 6.26
Purply
#983FB2
ΔE00 6.71
Blueviolet
#8A2BE2
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2CAF #5CAF2C
analogous
#3D2CAF #7F2CAF #AF2C9D
triadic
#7F2CAF #AF7F2C #2CAF7F
tetradic
#7F2CAF #AF3D2C #5CAF2C #2C9DAF
square
#7F2CAF #AF3D2C #5CAF2C #2C9DAF
split-complementary
#7F2CAF #9DAF2C #2CAF3D
monochromatic
#38134D #5C207E #7F2CAF #9E47D1 #B878DD
Accessibility & contrast
On white
7.29
#7F2CAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#7F2CAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2CAF
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2CAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2CAF | 1.00 | 7.29 | 2.88 | 7.29 |
| #FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0658AC
Tritanopia (blue-blind)
#784B6C
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7f2caf; /* rgb */ color: rgb(127, 44, 175); /* oklch */ color: oklch(48.0% 0.199 309.7);
Tailwind
colors: {
custom: {
50: '#a96ec8',
500: '#7f2caf',
950: '#000000',
},
}SCSS
$custom: #7f2caf; $custom-light: #a96ec8; $custom-dark: #000000;
JSON
{
"hex": "#7f2caf",
"rgb": {
"r": 127,
"g": 44,
"b": 175
},
"hsl": {
"h": 278.015,
"s": 59.817,
"l": 42.941
},
"oklch": {
"l": 0.48008,
"c": 0.19886,
"h": 309.7
},
"luminance": 0.09409
}Semantic roles & 50–950 ramp
primary
#7F2CAF
secondary
#90C572
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82