#6B2FA7#6B2FA7
#6B2FA7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.182 H 302.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).
Color values
| HEX | #6B2FA7 |
|---|---|
| RGB | rgb(107, 47, 167) |
| HSL | hsl(270, 56%, 42%) |
| HSV | hsv(270, 72%, 65%) |
| CMYK | cmyk(35.9%, 71.9%, 0%, 34.5%) |
| CIE-LAB | lab(33.88, 49.41, -54.01) |
| CIE-LCH | lch(33.88, 73.20, 312.46°) |
| OKLab | oklab(45.19% 0.0977 -0.1538) |
| OKLCH | oklch(45.19% 0.182 302.4) |
| XYZ | xyz(14.0533, 7.9488, 37.3456) |
| Luminance | 0.0795 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.44
Purple (survey)
#7E1E9C
ΔE00 4.99
Purple Blue
#5D21D0
ΔE00 6.51
Bluey Purple
#6241C7
ΔE00 6.78
Blue With A Hint Of Purple
#533CC6
ΔE00 7.14
Blurple
#5539CC
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B2FA7 #6BA72F
analogous
#2F2FA7 #6B2FA7 #A72FA7
triadic
#6B2FA7 #A76B2F #2FA76B
tetradic
#6B2FA7 #A72F2F #6BA72F #2FA7A7
square
#6B2FA7 #A72F2F #6BA72F #2FA7A7
split-complementary
#6B2FA7 #A7A72F #2FA72F
monochromatic
#2E1447 #4C2277 #6B2FA7 #8A48CB #A878D9
Accessibility & contrast
On white
8.11
#6B2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#6B2FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B2FA7
8.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B2FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B2FA7 | 1.00 | 8.11 | 2.59 | 8.11 |
| #FFFFFF | 8.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#5F4C68
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #6b2fa7; /* rgb */ color: rgb(107, 47, 167); /* oklch */ color: oklch(45.2% 0.182 302.4);
Tailwind
colors: {
custom: {
50: '#9b6dc2',
500: '#6b2fa7',
950: '#000000',
},
}SCSS
$custom: #6b2fa7; $custom-light: #9b6dc2; $custom-dark: #000000;
JSON
{
"hex": "#6b2fa7",
"rgb": {
"r": 107,
"g": 47,
"b": 167
},
"hsl": {
"h": 270,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.45194,
"c": 0.18223,
"h": 302.4
},
"luminance": 0.07949
}Semantic roles & 50–950 ramp
primary
#6B2FA7
secondary
#99C171
accent
#DF4894
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81