#6B1B98#6B1B98
#6B1B98 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.189 H 309.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #6B1B98 |
|---|---|
| RGB | rgb(107, 27, 152) |
| HSL | hsl(278, 70%, 35%) |
| HSV | hsv(278, 82%, 60%) |
| CMYK | cmyk(29.6%, 82.2%, 0%, 40.4%) |
| CIE-LAB | lab(29.85, 54.03, -51.45) |
| CIE-LCH | lch(29.85, 74.61, 316.40°) |
| OKLab | oklab(41.99% 0.1191 -0.1462) |
| OKLCH | oklch(41.99% 0.189 309.2) |
| XYZ | xyz(12.1217, 6.1769, 30.2534) |
| Luminance | 0.0618 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.71
Rebeccapurple
#663399
ΔE00 4.31
Purple
#800080
ΔE00 7.03
Indigo
#4B0082
ΔE00 7.03
Darkmagenta
#8B008B
ΔE00 7.32
Darkish Purple
#751973
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B1B98 #48981B
analogous
#2D1B98 #6B1B98 #981B86
triadic
#6B1B98 #986B1B #1B986B
tetradic
#6B1B98 #982D1B #48981B #1B8698
square
#6B1B98 #982D1B #48981B #1B8698
split-complementary
#6B1B98 #86981B #1B982D
monochromatic
#220930 #461264 #6B1B98 #9024CC #AB4EE0
Accessibility & contrast
On white
9.39
#6B1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#6B1B98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B1B98
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B1B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B1B98 | 1.00 | 9.39 | 2.24 | 9.39 |
| #FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#643C5B
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #6b1b98; /* rgb */ color: rgb(107, 27, 152); /* oklch */ color: oklch(42.0% 0.189 309.2);
Tailwind
colors: {
custom: {
50: '#9a63b7',
500: '#6b1b98',
950: '#000000',
},
}SCSS
$custom: #6b1b98; $custom-light: #9a63b7; $custom-dark: #000000;
JSON
{
"hex": "#6b1b98",
"rgb": {
"r": 107,
"g": 27,
"b": 152
},
"hsl": {
"h": 278.4,
"s": 69.832,
"l": 35.098
},
"oklch": {
"l": 0.41991,
"c": 0.18856,
"h": 309.2
},
"luminance": 0.06177
}Semantic roles & 50–950 ramp
primary
#6B1B98
secondary
#77C24D
accent
#ED3B7B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80