#6A51E2#6A51E2
#6A51E2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.5% C 0.210 H 284.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #6A51E2 |
|---|---|
| RGB | rgb(106, 81, 226) |
| HSL | hsl(250, 71%, 60%) |
| HSV | hsv(250, 64%, 89%) |
| CMYK | cmyk(53.1%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(44.86, 47.50, -70.55) |
| CIE-LCH | lch(44.86, 85.04, 303.95°) |
| OKLab | oklab(54.48% 0.0541 -0.2026) |
| OKLCH | oklch(54.48% 0.21 284.9) |
| XYZ | xyz(22.6096, 14.4388, 73.5324) |
| Luminance | 0.1444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.50
Slate Blue
#6A5ACD
ΔE00 3.71
Purpleish Blue
#6140EF
ΔE00 4.16
Dark Periwinkle
#665FD1
ΔE00 4.66
Iris
#6258C4
ΔE00 4.82
Bluish Purple
#703BE7
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A51E2 #C9E251
analogous
#5180E2 #6A51E2 #B351E2
triadic
#6A51E2 #E26A51 #51E26A
tetradic
#6A51E2 #E25180 #C9E251 #51E2B3
square
#6A51E2 #E25180 #C9E251 #51E2B3
split-complementary
#6A51E2 #E2B351 #80E251
monochromatic
#311A9E #4123D3 #6A51E2 #9785EB #C4BAF3
Accessibility & contrast
On white
5.40
#6A51E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#6A51E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6A51E2
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A51E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A51E2 | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#377592
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #6a51e2; /* rgb */ color: rgb(106, 81, 226); /* oklch */ color: oklch(54.5% 0.210 284.9);
Tailwind
colors: {
custom: {
50: '#9f83ec',
500: '#6a51e2',
950: '#000000',
},
}SCSS
$custom: #6a51e2; $custom-light: #9f83ec; $custom-dark: #000000;
JSON
{
"hex": "#6a51e2",
"rgb": {
"r": 106,
"g": 81,
"b": 226
},
"hsl": {
"h": 250.345,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.54481,
"c": 0.20965,
"h": 284.9
},
"luminance": 0.1444
}Semantic roles & 50–950 ramp
primary
#6A51E2
secondary
#DAE3AC
accent
#D312B2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84