#6126AF#6126AF
#6126AF is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.199 H 296.6°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #6126AF |
|---|---|
| RGB | rgb(97, 38, 175) |
| HSL | hsl(266, 64%, 42%) |
| HSV | hsv(266, 78%, 69%) |
| CMYK | cmyk(44.6%, 78.3%, 0%, 31.4%) |
| CIE-LAB | lab(31.86, 53.68, -62.15) |
| CIE-LCH | lch(31.86, 82.12, 310.82°) |
| OKLab | oklab(43.7% 0.0893 -0.178) |
| OKLCH | oklch(43.7% 0.199 296.6) |
| XYZ | xyz(13.3587, 7.0225, 41.2008) |
| Luminance | 0.0702 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.42
Rebeccapurple
#663399
ΔE00 4.61
Violet Blue
#510AC9
ΔE00 4.89
Indigo Blue
#3A18B1
ΔE00 5.97
Blurple
#5539CC
ΔE00 6.13
Blue With A Hint Of Purple
#533CC6
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6126AF #74AF26
analogous
#2630AF #6126AF #A526AF
triadic
#6126AF #AF6126 #26AF61
tetradic
#6126AF #AF2630 #74AF26 #26AFA5
square
#6126AF #AF2630 #74AF26 #26AFA5
split-complementary
#6126AF #AFA526 #30AF26
monochromatic
#29104A #451B7D #6126AF #7F3DD5 #A070E0
Accessibility & contrast
On white
8.73
#6126AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#6126AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6126AF
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6126AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6126AF | 1.00 | 8.73 | 2.40 | 8.73 |
| #FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#4C4C6A
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #6126af; /* rgb */ color: rgb(97, 38, 175); /* oklch */ color: oklch(43.7% 0.199 296.6);
Tailwind
colors: {
custom: {
50: '#9667c8',
500: '#6126af',
950: '#000000',
},
}SCSS
$custom: #6126af; $custom-light: #9667c8; $custom-dark: #000000;
JSON
{
"hex": "#6126af",
"rgb": {
"r": 97,
"g": 38,
"b": 175
},
"hsl": {
"h": 265.839,
"s": 64.319,
"l": 41.765
},
"oklch": {
"l": 0.43699,
"c": 0.19917,
"h": 296.6
},
"luminance": 0.07023
}Semantic roles & 50–950 ramp
primary
#6126AF
secondary
#9FC76A
accent
#E7409F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82