#6B2AA2#6B2AA2
#6B2AA2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.183 H 304.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #6B2AA2 |
|---|---|
| RGB | rgb(107, 42, 162) |
| HSL | hsl(273, 59%, 40%) |
| HSV | hsv(273, 74%, 64%) |
| CMYK | cmyk(34%, 74.1%, 0%, 36.5%) |
| CIE-LAB | lab(32.68, 50.48, -52.94) |
| CIE-LCH | lch(32.68, 73.15, 313.64°) |
| OKLab | oklab(44.22% 0.1036 -0.1506) |
| OKLCH | oklch(44.22% 0.183 304.5) |
| XYZ | xyz(13.4115, 7.3904, 34.8954) |
| Luminance | 0.0739 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.39
Purple (survey)
#7E1E9C
ΔE00 4.22
Purple Blue
#5D21D0
ΔE00 7.06
Violet Blue
#510AC9
ΔE00 7.75
Bluey Purple
#6241C7
ΔE00 7.99
Blue With A Hint Of Purple
#533CC6
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B2AA2 #61A22A
analogous
#2F2AA2 #6B2AA2 #A22A9D
triadic
#6B2AA2 #A26B2A #2AA26B
tetradic
#6B2AA2 #A22F2A #61A22A #2A9DA2
square
#6B2AA2 #A22F2A #61A22A #2A9DA2
split-complementary
#6B2AA2 #9DA22A #2AA22F
monochromatic
#2B1141 #4B1D71 #6B2AA2 #8B3DCD #A86DD9
Accessibility & contrast
On white
8.47
#6B2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#6B2AA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B2AA2
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B2AA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B2AA2 | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#604764
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #6b2aa2; /* rgb */ color: rgb(107, 42, 162); /* oklch */ color: oklch(44.2% 0.183 304.5);
Tailwind
colors: {
custom: {
50: '#9a6abe',
500: '#6b2aa2',
950: '#000000',
},
}SCSS
$custom: #6b2aa2; $custom-light: #9a6abe; $custom-dark: #000000;
JSON
{
"hex": "#6b2aa2",
"rgb": {
"r": 107,
"g": 42,
"b": 162
},
"hsl": {
"h": 272.5,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.44224,
"c": 0.18286,
"h": 304.5
},
"luminance": 0.0739
}Semantic roles & 50–950 ramp
primary
#6B2AA2
secondary
#90C068
accent
#E2468D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81