#6B2FA6#6B2FA6
#6B2FA6 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.181 H 302.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).
Color values
| HEX | #6B2FA6 |
|---|---|
| RGB | rgb(107, 47, 166) |
| HSL | hsl(270, 56%, 42%) |
| HSV | hsv(270, 72%, 65%) |
| CMYK | cmyk(35.5%, 71.7%, 0%, 34.9%) |
| CIE-LAB | lab(33.80, 49.16, -53.53) |
| CIE-LCH | lch(33.80, 72.68, 312.57°) |
| OKLab | oklab(45.12% 0.0979 -0.1524) |
| OKLCH | oklch(45.12% 0.181 302.7) |
| XYZ | xyz(13.9612, 7.9120, 36.8606) |
| Luminance | 0.0791 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.30
Purple (survey)
#7E1E9C
ΔE00 4.90
Purple Blue
#5D21D0
ΔE00 6.65
Bluey Purple
#6241C7
ΔE00 6.91
Blue With A Hint Of Purple
#533CC6
ΔE00 7.27
Blurple
#5539CC
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B2FA6 #6AA62F
analogous
#2F2FA6 #6B2FA6 #A62FA6
triadic
#6B2FA6 #A66B2F #2FA66B
tetradic
#6B2FA6 #A62F2F #6AA62F #2FA6A6
square
#6B2FA6 #A62F2F #6AA62F #2FA6A6
split-complementary
#6B2FA6 #A6A62F #2FA62F
monochromatic
#2E1447 #4C2176 #6B2FA6 #8A47CB #A877D8
Accessibility & contrast
On white
8.13
#6B2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#6B2FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B2FA6
8.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B2FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B2FA6 | 1.00 | 8.13 | 2.58 | 8.13 |
| #FFFFFF | 8.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#5F4B67
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #6b2fa6; /* rgb */ color: rgb(107, 47, 166); /* oklch */ color: oklch(45.1% 0.181 302.7);
Tailwind
colors: {
custom: {
50: '#9a6dc1',
500: '#6b2fa6',
950: '#000000',
},
}SCSS
$custom: #6b2fa6; $custom-light: #9a6dc1; $custom-dark: #000000;
JSON
{
"hex": "#6b2fa6",
"rgb": {
"r": 107,
"g": 47,
"b": 166
},
"hsl": {
"h": 270.252,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.45115,
"c": 0.18114,
"h": 302.7
},
"luminance": 0.07912
}Semantic roles & 50–950 ramp
primary
#6B2FA6
secondary
#98C170
accent
#DF4993
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81