#6C2FA6#6C2FA6
#6C2FA6 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.181 H 303.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).
Color values
| HEX | #6C2FA6 |
|---|---|
| RGB | rgb(108, 47, 166) |
| HSL | hsl(271, 56%, 42%) |
| HSV | hsv(271, 72%, 65%) |
| CMYK | cmyk(34.9%, 71.7%, 0%, 34.9%) |
| CIE-LAB | lab(33.93, 49.36, -53.31) |
| CIE-LCH | lch(33.93, 72.65, 312.80°) |
| OKLab | oklab(45.24% 0.0993 -0.1517) |
| OKLCH | oklch(45.24% 0.181 303.2) |
| XYZ | xyz(14.0822, 7.9744, 36.8663) |
| Luminance | 0.0797 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.33
Purple (survey)
#7E1E9C
ΔE00 4.75
Purple Blue
#5D21D0
ΔE00 6.75
Bluey Purple
#6241C7
ΔE00 6.98
Blue With A Hint Of Purple
#533CC6
ΔE00 7.39
Blurple
#5539CC
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C2FA6 #69A62F
analogous
#302FA6 #6C2FA6 #A62FA5
triadic
#6C2FA6 #A66C2F #2FA66C
tetradic
#6C2FA6 #A6302F #69A62F #2FA5A6
square
#6C2FA6 #A6302F #69A62F #2FA5A6
split-complementary
#6C2FA6 #A5A62F #2FA630
monochromatic
#2E1447 #4D2176 #6C2FA6 #8B47CB #A977D8
Accessibility & contrast
On white
8.09
#6C2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#6C2FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6C2FA6
8.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C2FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C2FA6 | 1.00 | 8.09 | 2.59 | 8.09 |
| #FFFFFF | 8.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#604B67
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #6c2fa6; /* rgb */ color: rgb(108, 47, 166); /* oklch */ color: oklch(45.2% 0.181 303.2);
Tailwind
colors: {
custom: {
50: '#9b6dc1',
500: '#6c2fa6',
950: '#000000',
},
}SCSS
$custom: #6c2fa6; $custom-light: #9b6dc1; $custom-dark: #000000;
JSON
{
"hex": "#6c2fa6",
"rgb": {
"r": 108,
"g": 47,
"b": 166
},
"hsl": {
"h": 270.756,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.45236,
"c": 0.18135,
"h": 303.2
},
"luminance": 0.07974
}Semantic roles & 50–950 ramp
primary
#6C2FA6
secondary
#97C170
accent
#DF4992
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81