#6B2298#6B2298
#6B2298 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.182 H 308.6°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).
Color values
| HEX | #6B2298 |
|---|---|
| RGB | rgb(107, 34, 152) |
| HSL | hsl(277, 63%, 36%) |
| HSV | hsv(277, 78%, 60%) |
| CMYK | cmyk(29.6%, 77.6%, 0%, 40.4%) |
| CIE-LAB | lab(30.73, 51.50, -50.03) |
| CIE-LCH | lch(30.73, 71.80, 315.83°) |
| OKLab | oklab(42.6% 0.1133 -0.142) |
| OKLCH | oklch(42.6% 0.182 308.6) |
| XYZ | xyz(12.3018, 6.5371, 30.3134) |
| Luminance | 0.0654 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.36
Purple (survey)
#7E1E9C
ΔE00 3.52
Purple
#800080
ΔE00 7.26
Darkmagenta
#8B008B
ΔE00 7.43
Indigo
#4B0082
ΔE00 7.66
Darkish Purple
#751973
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B2298 #4F9822
analogous
#302298 #6B2298 #98228A
triadic
#6B2298 #986B22 #22986B
tetradic
#6B2298 #983022 #4F9822 #228A98
square
#6B2298 #983022 #4F9822 #228A98
split-complementary
#6B2298 #8A9822 #229830
monochromatic
#250C34 #481766 #6B2298 #8E2DCA #A95ADA
Accessibility & contrast
On white
9.10
#6B2298 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#6B2298 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B2298
9.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B2298 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B2298 | 1.00 | 9.10 | 2.31 | 9.10 |
| #FFFFFF | 9.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#643F5C
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #6b2298; /* rgb */ color: rgb(107, 34, 152); /* oklch */ color: oklch(42.6% 0.182 308.6);
Tailwind
colors: {
custom: {
50: '#9a66b7',
500: '#6b2298',
950: '#000000',
},
}SCSS
$custom: #6b2298; $custom-light: #9a66b7; $custom-dark: #000000;
JSON
{
"hex": "#6b2298",
"rgb": {
"r": 107,
"g": 34,
"b": 152
},
"hsl": {
"h": 277.119,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.42603,
"c": 0.18168,
"h": 308.6
},
"luminance": 0.06537
}Semantic roles & 50–950 ramp
primary
#6B2298
secondary
#7FBE57
accent
#E64180
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80