#6B2CA6#6B2CA6
#6B2CA6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.185 H 303.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #6B2CA6 |
|---|---|
| RGB | rgb(107, 44, 166) |
| HSL | hsl(271, 58%, 41%) |
| HSV | hsv(271, 73%, 65%) |
| CMYK | cmyk(35.5%, 73.5%, 0%, 34.9%) |
| CIE-LAB | lab(33.31, 50.55, -54.33) |
| CIE-LCH | lch(33.31, 74.21, 312.94°) |
| OKLab | oklab(44.77% 0.1009 -0.1547) |
| OKLCH | oklch(44.77% 0.185 303.1) |
| XYZ | xyz(13.8454, 7.6803, 36.8220) |
| Luminance | 0.0768 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.56
Purple (survey)
#7E1E9C
ΔE00 4.67
Purple Blue
#5D21D0
ΔE00 6.51
Bluey Purple
#6241C7
ΔE00 7.25
Violet Blue
#510AC9
ΔE00 7.47
Blurple
#5539CC
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B2CA6 #67A62C
analogous
#2E2CA6 #6B2CA6 #A62CA4
triadic
#6B2CA6 #A66B2C #2CA66B
tetradic
#6B2CA6 #A62E2C #67A62C #2CA4A6
square
#6B2CA6 #A62E2C #67A62C #2CA4A6
split-complementary
#6B2CA6 #A4A62C #2CA62E
monochromatic
#2D1245 #4C1F76 #6B2CA6 #8A42CD #A873DA
Accessibility & contrast
On white
8.28
#6B2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#6B2CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B2CA6
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B2CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B2CA6 | 1.00 | 8.28 | 2.54 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#5F4A66
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #6b2ca6; /* rgb */ color: rgb(107, 44, 166); /* oklch */ color: oklch(44.8% 0.185 303.1);
Tailwind
colors: {
custom: {
50: '#9b6bc1',
500: '#6b2ca6',
950: '#000000',
},
}SCSS
$custom: #6b2ca6; $custom-light: #9b6bc1; $custom-dark: #000000;
JSON
{
"hex": "#6b2ca6",
"rgb": {
"r": 107,
"g": 44,
"b": 166
},
"hsl": {
"h": 270.984,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.44767,
"c": 0.18473,
"h": 303.1
},
"luminance": 0.0768
}Semantic roles & 50–950 ramp
primary
#6B2CA6
secondary
#96C16D
accent
#E14691
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81