#6A1A98#6A1A98
#6A1A98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.189 H 308.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).
Color values
| HEX | #6A1A98 |
|---|---|
| RGB | rgb(106, 26, 152) |
| HSL | hsl(278, 71%, 35%) |
| HSV | hsv(278, 83%, 60%) |
| CMYK | cmyk(30.3%, 82.9%, 0%, 40.4%) |
| CIE-LAB | lab(29.59, 54.19, -51.89) |
| CIE-LCH | lch(29.59, 75.02, 316.24°) |
| OKLab | oklab(41.77% 0.1185 -0.1475) |
| OKLCH | oklch(41.77% 0.189 308.8) |
| XYZ | xyz(11.9796, 6.0702, 30.2403) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.94
Rebeccapurple
#663399
ΔE00 4.43
Indigo
#4B0082
ΔE00 6.81
Purple
#800080
ΔE00 7.16
Darkmagenta
#8B008B
ΔE00 7.49
Violet Blue
#510AC9
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A1A98 #48981A
analogous
#2B1A98 #6A1A98 #981A87
triadic
#6A1A98 #986A1A #1A986A
tetradic
#6A1A98 #982B1A #48981A #1A8798
square
#6A1A98 #982B1A #48981A #1A8798
split-complementary
#6A1A98 #87981A #1A982B
monochromatic
#21082F #461164 #6A1A98 #8E23CC #AA4CE0
Accessibility & contrast
On white
9.49
#6A1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#6A1A98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A1A98
9.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A1A98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A1A98 | 1.00 | 9.49 | 2.21 | 9.49 |
| #FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#633C5A
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #6a1a98; /* rgb */ color: rgb(106, 26, 152); /* oklch */ color: oklch(41.8% 0.189 308.8);
Tailwind
colors: {
custom: {
50: '#9a62b7',
500: '#6a1a98',
950: '#000000',
},
}SCSS
$custom: #6a1a98; $custom-light: #9a62b7; $custom-dark: #000000;
JSON
{
"hex": "#6a1a98",
"rgb": {
"r": 106,
"g": 26,
"b": 152
},
"hsl": {
"h": 278.095,
"s": 70.787,
"l": 34.902
},
"oklch": {
"l": 0.41774,
"c": 0.18918,
"h": 308.8
},
"luminance": 0.0607
}Semantic roles & 50–950 ramp
primary
#6A1A98
secondary
#77C24B
accent
#EE3A7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80