#6C2AB2#6C2AB2
#6C2AB2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.200 H 300.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).
Color values
| HEX | #6C2AB2 |
|---|---|
| RGB | rgb(108, 42, 178) |
| HSL | hsl(269, 62%, 43%) |
| HSV | hsv(269, 76%, 70%) |
| CMYK | cmyk(39.3%, 76.4%, 0%, 30.2%) |
| CIE-LAB | lab(34.10, 54.51, -60.20) |
| CIE-LCH | lch(34.10, 81.22, 312.16°) |
| OKLab | oklab(45.66% 0.1015 -0.172) |
| OKLCH | oklch(45.66% 0.2 300.5) |
| XYZ | xyz(15.0462, 8.0583, 42.8736) |
| Luminance | 0.0806 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.23
Purple Blue
#5D21D0
ΔE00 4.85
Purple (survey)
#7E1E9C
ΔE00 5.65
Bluey Purple
#6241C7
ΔE00 6.20
Blurple
#5539CC
ΔE00 6.22
Violet Blue
#510AC9
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C2AB2 #70B22A
analogous
#2A2CB2 #6C2AB2 #B02AB2
triadic
#6C2AB2 #B26C2A #2AB26C
tetradic
#6C2AB2 #B22A2C #70B22A #2AB2B0
square
#6C2AB2 #B22A2C #70B22A #2AB2B0
split-complementary
#6C2AB2 #B2B02A #2CB22A
monochromatic
#30134F #4E1E80 #6C2AB2 #8B46D3 #AA77DF
Accessibility & contrast
On white
8.04
#6C2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#6C2AB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6C2AB2
8.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C2AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C2AB2 | 1.00 | 8.04 | 2.61 | 8.04 |
| #FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#5C4E6D
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #6c2ab2; /* rgb */ color: rgb(108, 42, 178); /* oklch */ color: oklch(45.7% 0.200 300.5);
Tailwind
colors: {
custom: {
50: '#9d6bca',
500: '#6c2ab2',
950: '#000000',
},
}SCSS
$custom: #6c2ab2; $custom-light: #9d6bca; $custom-dark: #000000;
JSON
{
"hex": "#6c2ab2",
"rgb": {
"r": 108,
"g": 42,
"b": 178
},
"hsl": {
"h": 269.118,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.45658,
"c": 0.19969,
"h": 300.5
},
"luminance": 0.08058
}Semantic roles & 50–950 ramp
primary
#6C2AB2
secondary
#9DC771
accent
#E54396
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82