#7C2AB9#7C2AB9
#7C2AB9 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.210 H 305.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7C2AB9 |
|---|---|
| RGB | rgb(124, 42, 185) |
| HSL | hsl(274, 63%, 45%) |
| HSV | hsv(274, 77%, 73%) |
| CMYK | cmyk(33%, 77.3%, 0%, 27.5%) |
| CIE-LAB | lab(36.83, 58.88, -59.83) |
| CIE-LCH | lch(36.83, 83.94, 314.54°) |
| OKLab | oklab(48.2% 0.1226 -0.1703) |
| OKLCH | oklch(48.2% 0.21 305.7) |
| XYZ | xyz(17.8951, 9.4439, 46.7697) |
| Luminance | 0.0944 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.80
Purple (survey)
#7E1E9C
ΔE00 5.12
Rebeccapurple
#663399
ΔE00 5.76
Blueviolet
#8A2BE2
ΔE00 6.04
Darkorchid
#9932CC
ΔE00 6.15
Purple Blue
#5D21D0
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C2AB9 #67B92A
analogous
#352AB9 #7C2AB9 #B92AAF
triadic
#7C2AB9 #B97C2A #2AB97C
tetradic
#7C2AB9 #B9352A #67B92A #2AAFB9
square
#7C2AB9 #B9352A #67B92A #2AAFB9
split-complementary
#7C2AB9 #AFB92A #2AB935
monochromatic
#391355 #5B1F87 #7C2AB9 #9A4AD6 #B67CE1
Accessibility & contrast
On white
7.27
#7C2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#7C2AB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7C2AB9
7.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C2AB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C2AB9 | 1.00 | 7.27 | 2.89 | 7.27 |
| #FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#714F71
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7c2ab9; /* rgb */ color: rgb(124, 42, 185); /* oklch */ color: oklch(48.2% 0.210 305.7);
Tailwind
colors: {
custom: {
50: '#a86dcf',
500: '#7c2ab9',
950: '#000000',
},
}SCSS
$custom: #7c2ab9; $custom-light: #a86dcf; $custom-dark: #000000;
JSON
{
"hex": "#7c2ab9",
"rgb": {
"r": 124,
"g": 42,
"b": 185
},
"hsl": {
"h": 274.406,
"s": 62.996,
"l": 44.51
},
"oklch": {
"l": 0.48204,
"c": 0.20983,
"h": 305.7
},
"luminance": 0.09444
}Semantic roles & 50–950 ramp
primary
#7C2AB9
secondary
#99CA75
accent
#E64288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82