#6A51E5#6A51E5
#6A51E5 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.7% C 0.213 H 284.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #6A51E5 |
|---|---|
| RGB | rgb(106, 81, 229) |
| HSL | hsl(250, 74%, 61%) |
| HSV | hsv(250, 65%, 90%) |
| CMYK | cmyk(53.7%, 64.6%, 0%, 10.2%) |
| CIE-LAB | lab(45.09, 48.38, -71.87) |
| CIE-LCH | lch(45.09, 86.63, 303.95°) |
| OKLab | oklab(54.72% 0.0538 -0.2064) |
| OKLCH | oklch(54.72% 0.213 284.6) |
| XYZ | xyz(23.0249, 14.6049, 75.7193) |
| Luminance | 0.1461 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.76
Slate Blue
#6A5ACD
ΔE00 3.99
Purpleish Blue
#6140EF
ΔE00 4.10
Dark Periwinkle
#665FD1
ΔE00 4.81
Bluish Purple
#703BE7
ΔE00 4.93
Purpley
#8756E4
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A51E5 #CCE551
analogous
#5182E5 #6A51E5 #B451E5
triadic
#6A51E5 #E56A51 #51E56A
tetradic
#6A51E5 #E55182 #CCE551 #51E5B4
square
#6A51E5 #E55182 #CCE551 #51E5B4
split-complementary
#6A51E5 #E5B451 #82E551
monochromatic
#3018A3 #3F20D8 #6A51E5 #9886ED #C5BBF5
Accessibility & contrast
On white
5.36
#6A51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#6A51E5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6A51E5
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A51E5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A51E5 | 1.00 | 5.36 | 3.92 | 5.36 |
| #FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FEA
Deuteranopia (green-blind)
#0066E2
Tritanopia (blue-blind)
#347694
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #6a51e5; /* rgb */ color: rgb(106, 81, 229); /* oklch */ color: oklch(54.7% 0.213 284.6);
Tailwind
colors: {
custom: {
50: '#9f83ee',
500: '#6a51e5',
950: '#000000',
},
}SCSS
$custom: #6a51e5; $custom-light: #9f83ee; $custom-dark: #000000;
JSON
{
"hex": "#6a51e5",
"rgb": {
"r": 106,
"g": 81,
"b": 229
},
"hsl": {
"h": 250.135,
"s": 74,
"l": 60.784
},
"oklch": {
"l": 0.54722,
"c": 0.21332,
"h": 284.6
},
"luminance": 0.14606
}Semantic roles & 50–950 ramp
primary
#6A51E5
secondary
#DBE5AD
accent
#D60FB5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85