#6A2FA7#6A2FA7
#6A2FA7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.182 H 301.9°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #6A2FA7 |
|---|---|
| RGB | rgb(106, 47, 167) |
| HSL | hsl(270, 56%, 42%) |
| HSV | hsv(270, 72%, 65%) |
| CMYK | cmyk(36.5%, 71.9%, 0%, 34.5%) |
| CIE-LAB | lab(33.75, 49.22, -54.22) |
| CIE-LCH | lch(33.75, 73.23, 312.23°) |
| OKLab | oklab(45.07% 0.0963 -0.1545) |
| OKLCH | oklch(45.07% 0.182 301.9) |
| XYZ | xyz(13.9338, 7.8872, 37.3400) |
| Luminance | 0.0789 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.43
Purple (survey)
#7E1E9C
ΔE00 5.14
Purple Blue
#5D21D0
ΔE00 6.42
Bluey Purple
#6241C7
ΔE00 6.72
Blue With A Hint Of Purple
#533CC6
ΔE00 7.03
Blurple
#5539CC
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A2FA7 #6CA72F
analogous
#2F30A7 #6A2FA7 #A62FA7
triadic
#6A2FA7 #A76A2F #2FA76A
tetradic
#6A2FA7 #A72F30 #6CA72F #2FA7A6
square
#6A2FA7 #A72F30 #6CA72F #2FA7A6
split-complementary
#6A2FA7 #A7A62F #30A72F
monochromatic
#2D1447 #4C2277 #6A2FA7 #8948CB #A778D9
Accessibility & contrast
On white
8.15
#6A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#6A2FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A2FA7
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A2FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A2FA7 | 1.00 | 8.15 | 2.58 | 8.15 |
| #FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#5D4C68
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #6a2fa7; /* rgb */ color: rgb(106, 47, 167); /* oklch */ color: oklch(45.1% 0.182 301.9);
Tailwind
colors: {
custom: {
50: '#9a6dc2',
500: '#6a2fa7',
950: '#000000',
},
}SCSS
$custom: #6a2fa7; $custom-light: #9a6dc2; $custom-dark: #000000;
JSON
{
"hex": "#6a2fa7",
"rgb": {
"r": 106,
"g": 47,
"b": 167
},
"hsl": {
"h": 269.5,
"s": 56.075,
"l": 41.961
},
"oklch": {
"l": 0.45074,
"c": 0.18204,
"h": 301.9
},
"luminance": 0.07887
}Semantic roles & 50–950 ramp
primary
#6A2FA7
secondary
#9AC171
accent
#DF4895
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81