#6C51AE#6C51AE
#6C51AE is a mid, vivid violet. Relative luminance 0.121; OKLCH L 50.9% C 0.143 H 294.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #6C51AE |
|---|---|
| RGB | rgb(108, 81, 174) |
| HSL | hsl(257, 36%, 50%) |
| HSV | hsv(257, 53%, 68%) |
| CMYK | cmyk(37.9%, 53.4%, 0%, 31.8%) |
| CIE-LAB | lab(41.42, 32.91, -46.00) |
| CIE-LCH | lch(41.42, 56.56, 305.58°) |
| OKLab | oklab(50.86% 0.0584 -0.1303) |
| OKLCH | oklch(50.86% 0.143 294.1) |
| XYZ | xyz(16.7648, 12.1286, 41.4940) |
| Luminance | 0.1213 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.10
Iris
#6258C4
ΔE00 5.03
Slate Blue
#6A5ACD
ΔE00 5.79
Light Indigo
#6D5ACF
ΔE00 5.94
Bluey Purple
#6241C7
ΔE00 6.24
Ocean Blue
#4F42B5
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6C51AE #93AE51
analogous
#5165AE #6C51AE #9A51AE
triadic
#6C51AE #AE6C51 #51AE6C
tetradic
#6C51AE #AE5165 #93AE51 #51AE9A
square
#6C51AE #AE5165 #93AE51 #51AE9A
split-complementary
#6C51AE #AE9A51 #65AE51
monochromatic
#382A5A #523E84 #6C51AE #8F7BC1 #B3A5D5
Accessibility & contrast
On white
6.13
#6C51AE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#6C51AE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6C51AE
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6C51AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6C51AE | 1.00 | 6.13 | 3.43 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A63B1
Deuteranopia (green-blind)
#3060AC
Tritanopia (blue-blind)
#5C6478
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #6c51ae; /* rgb */ color: rgb(108, 81, 174); /* oklch */ color: oklch(50.9% 0.143 294.1);
Tailwind
colors: {
custom: {
50: '#9a82c7',
500: '#6c51ae',
950: '#000000',
},
}SCSS
$custom: #6c51ae; $custom-light: #9a82c7; $custom-dark: #000000;
JSON
{
"hex": "#6c51ae",
"rgb": {
"r": 108,
"g": 81,
"b": 174
},
"hsl": {
"h": 257.419,
"s": 36.471,
"l": 50
},
"oklch": {
"l": 0.5086,
"c": 0.14281,
"h": 294.1
},
"luminance": 0.12129
}Semantic roles & 50–950 ramp
primary
#6C51AE
secondary
#B6C299
accent
#CC5BAC
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0E0A13
muted
#7E7C82