#6140E3#6140E3
#6140E3 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.231 H 284.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #6140E3 |
|---|---|
| RGB | rgb(97, 64, 227) |
| HSL | hsl(252, 74%, 57%) |
| HSV | hsv(252, 72%, 89%) |
| CMYK | cmyk(57.3%, 71.8%, 0%, 11%) |
| CIE-LAB | lab(40.82, 55.54, -77.75) |
| CIE-LCH | lch(40.82, 95.55, 305.54°) |
| OKLab | oklab(51.42% 0.0561 -0.2239) |
| OKLCH | oklch(51.42% 0.231 284.1) |
| XYZ | xyz(20.6240, 11.7529, 73.8399) |
| Luminance | 0.1175 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.49
Bluish Purple
#703BE7
ΔE00 2.29
Purpley Blue
#5F34E7
ΔE00 2.32
Burple
#6832E3
ΔE00 2.77
Bluey Purple
#6241C7
ΔE00 3.65
Blurple
#5539CC
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6140E3 #C2E340
analogous
#4071E3 #6140E3 #B240E3
triadic
#6140E3 #E36140 #40E361
tetradic
#6140E3 #E34071 #C2E340 #40E3B2
square
#6140E3 #E34071 #C2E340 #40E3B2
split-complementary
#6140E3 #E3B240 #71E340
monochromatic
#2F1693 #401DC8 #6140E3 #8D75EB #B9ABF3
Accessibility & contrast
On white
6.27
#6140E3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#6140E3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6140E3
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6140E3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6140E3 | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065E8
Deuteranopia (green-blind)
#005BE0
Tritanopia (blue-blind)
#176D8E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #6140e3; /* rgb */ color: rgb(97, 64, 227); /* oklch */ color: oklch(51.4% 0.231 284.1);
Tailwind
colors: {
custom: {
50: '#9b78ed',
500: '#6140e3',
950: '#000000',
},
}SCSS
$custom: #6140e3; $custom-light: #9b78ed; $custom-dark: #000000;
JSON
{
"hex": "#6140e3",
"rgb": {
"r": 97,
"g": 64,
"b": 227
},
"hsl": {
"h": 252.147,
"s": 74.429,
"l": 57.059
},
"oklch": {
"l": 0.51422,
"c": 0.23083,
"h": 284.1
},
"luminance": 0.11754
}Semantic roles & 50–950 ramp
primary
#6140E3
secondary
#D3E19E
accent
#F137CB
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84