#6A1B98#6A1B98
#6A1B98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.188 H 308.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #6A1B98 |
|---|---|
| RGB | rgb(106, 27, 152) |
| HSL | hsl(278, 70%, 35%) |
| HSV | hsv(278, 82%, 60%) |
| CMYK | cmyk(30.3%, 82.2%, 0%, 40.4%) |
| CIE-LAB | lab(29.70, 53.86, -51.70) |
| CIE-LCH | lch(29.70, 74.66, 316.17°) |
| OKLab | oklab(41.85% 0.1177 -0.147) |
| OKLCH | oklch(41.85% 0.188 308.7) |
| XYZ | xyz(12.0021, 6.1152, 30.2478) |
| Luminance | 0.0612 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.90
Rebeccapurple
#663399
ΔE00 4.31
Indigo
#4B0082
ΔE00 6.89
Purple
#800080
ΔE00 7.18
Darkmagenta
#8B008B
ΔE00 7.50
Violet Blue
#510AC9
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A1B98 #49981B
analogous
#2C1B98 #6A1B98 #981B87
triadic
#6A1B98 #986A1B #1B986A
tetradic
#6A1B98 #982C1B #49981B #1B8798
square
#6A1B98 #982C1B #49981B #1B8798
split-complementary
#6A1B98 #87981B #1B982C
monochromatic
#220930 #461264 #6A1B98 #8E24CC #AA4EE0
Accessibility & contrast
On white
9.45
#6A1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#6A1B98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6A1B98
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A1B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A1B98 | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#633C5B
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #6a1b98; /* rgb */ color: rgb(106, 27, 152); /* oklch */ color: oklch(41.9% 0.188 308.7);
Tailwind
colors: {
custom: {
50: '#9a62b7',
500: '#6a1b98',
950: '#000000',
},
}SCSS
$custom: #6a1b98; $custom-light: #9a62b7; $custom-dark: #000000;
JSON
{
"hex": "#6a1b98",
"rgb": {
"r": 106,
"g": 27,
"b": 152
},
"hsl": {
"h": 277.92,
"s": 69.832,
"l": 35.098
},
"oklch": {
"l": 0.41853,
"c": 0.18829,
"h": 308.7
},
"luminance": 0.06115
}Semantic roles & 50–950 ramp
primary
#6A1B98
secondary
#78C24D
accent
#ED3B7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80