#6C2FA5#6C2FA5
#6C2FA5 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.180 H 303.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).
Color values
| HEX | #6C2FA5 |
|---|---|
| RGB | rgb(108, 47, 165) |
| HSL | hsl(271, 56%, 42%) |
| HSV | hsv(271, 72%, 65%) |
| CMYK | cmyk(34.5%, 71.5%, 0%, 35.3%) |
| CIE-LAB | lab(33.85, 49.12, -52.83) |
| CIE-LCH | lch(33.85, 72.14, 312.91°) |
| OKLab | oklab(45.16% 0.0995 -0.1504) |
| OKLCH | oklch(45.16% 0.18 303.5) |
| XYZ | xyz(13.9908, 7.9378, 36.3851) |
| Luminance | 0.0794 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.21
Purple (survey)
#7E1E9C
ΔE00 4.67
Purple Blue
#5D21D0
ΔE00 6.89
Bluey Purple
#6241C7
ΔE00 7.11
Blue With A Hint Of Purple
#533CC6
ΔE00 7.53
Blurple
#5539CC
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C2FA5 #68A52F
analogous
#312FA5 #6C2FA5 #A52FA3
triadic
#6C2FA5 #A56C2F #2FA56C
tetradic
#6C2FA5 #A5312F #68A52F #2FA3A5
square
#6C2FA5 #A5312F #68A52F #2FA3A5
split-complementary
#6C2FA5 #A3A52F #2FA531
monochromatic
#2E1446 #4D2175 #6C2FA5 #8B47CB #A976D8
Accessibility & contrast
On white
8.12
#6C2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#6C2FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6C2FA5
8.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C2FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C2FA5 | 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)
#004EA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#614B67
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #6c2fa5; /* rgb */ color: rgb(108, 47, 165); /* oklch */ color: oklch(45.2% 0.180 303.5);
Tailwind
colors: {
custom: {
50: '#9b6dc0',
500: '#6c2fa5',
950: '#000000',
},
}SCSS
$custom: #6c2fa5; $custom-light: #9b6dc0; $custom-dark: #000000;
JSON
{
"hex": "#6c2fa5",
"rgb": {
"r": 108,
"g": 47,
"b": 165
},
"hsl": {
"h": 271.017,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.45158,
"c": 0.18028,
"h": 303.5
},
"luminance": 0.07938
}Semantic roles & 50–950 ramp
primary
#6C2FA5
secondary
#97C070
accent
#DF4991
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81