#6C2CAB#6C2CAB
#6C2CAB is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.190 H 302.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).
Color values
| HEX | #6C2CAB |
|---|---|
| RGB | rgb(108, 44, 171) |
| HSL | hsl(270, 59%, 42%) |
| HSV | hsv(270, 74%, 67%) |
| CMYK | cmyk(36.8%, 74.3%, 0%, 32.9%) |
| CIE-LAB | lab(33.84, 51.95, -56.46) |
| CIE-LCH | lch(33.84, 76.72, 312.62°) |
| OKLab | oklab(45.29% 0.1013 -0.161) |
| OKLCH | oklch(45.29% 0.19 302.2) |
| XYZ | xyz(14.4339, 7.9297, 39.2903) |
| Luminance | 0.0793 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.20
Purple (survey)
#7E1E9C
ΔE00 5.00
Purple Blue
#5D21D0
ΔE00 5.88
Bluey Purple
#6241C7
ΔE00 6.70
Blurple
#5539CC
ΔE00 6.93
Blue With A Hint Of Purple
#533CC6
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C2CAB #6BAB2C
analogous
#2C2CAB #6C2CAB #AB2CAB
triadic
#6C2CAB #AB6C2C #2CAB6C
tetradic
#6C2CAB #AB2C2C #6BAB2C #2CABAB
square
#6C2CAB #AB2C2C #6BAB2C #2CABAB
split-complementary
#6C2CAB #ABAB2C #2CAB2C
monochromatic
#2F134A #4D1F7A #6C2CAB #8B45CF #A976DC
Accessibility & contrast
On white
8.12
#6C2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#6C2CAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6C2CAB
8.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C2CAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C2CAB | 1.00 | 8.12 | 2.59 | 8.12 |
| #FFFFFF | 8.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#5F4C69
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #6c2cab; /* rgb */ color: rgb(108, 44, 171); /* oklch */ color: oklch(45.3% 0.190 302.2);
Tailwind
colors: {
custom: {
50: '#9c6bc5',
500: '#6c2cab',
950: '#000000',
},
}SCSS
$custom: #6c2cab; $custom-light: #9c6bc5; $custom-dark: #000000;
JSON
{
"hex": "#6c2cab",
"rgb": {
"r": 108,
"g": 44,
"b": 171
},
"hsl": {
"h": 270.236,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.45292,
"c": 0.19021,
"h": 302.2
},
"luminance": 0.0793
}Semantic roles & 50–950 ramp
primary
#6C2CAB
secondary
#99C36F
accent
#E24693
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82