#6240E3#6240E3
#6240E3 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.231 H 284.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #6240E3 |
|---|---|
| RGB | rgb(98, 64, 227) |
| HSL | hsl(253, 74%, 57%) |
| HSV | hsv(253, 72%, 89%) |
| CMYK | cmyk(56.8%, 71.8%, 0%, 11%) |
| CIE-LAB | lab(40.91, 55.68, -77.60) |
| CIE-LCH | lch(40.91, 95.51, 305.66°) |
| OKLab | oklab(51.51% 0.0574 -0.2234) |
| OKLCH | oklch(51.51% 0.231 284.4) |
| XYZ | xyz(20.7313, 11.8082, 73.8450) |
| Luminance | 0.1181 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.48
Bluish Purple
#703BE7
ΔE00 2.16
Purpley Blue
#5F34E7
ΔE00 2.35
Burple
#6832E3
ΔE00 2.74
Bluey Purple
#6241C7
ΔE00 3.66
Blurple
#5539CC
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6240E3 #C1E340
analogous
#4070E3 #6240E3 #B340E3
triadic
#6240E3 #E36240 #40E362
tetradic
#6240E3 #E34070 #C1E340 #40E3B3
square
#6240E3 #E34070 #C1E340 #40E3B3
split-complementary
#6240E3 #E3B340 #70E340
monochromatic
#301693 #411DC8 #6240E3 #8E75EB #BAABF3
Accessibility & contrast
On white
6.25
#6240E3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#6240E3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6240E3
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6240E3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6240E3 | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065E8
Deuteranopia (green-blind)
#005BE0
Tritanopia (blue-blind)
#1D6D8E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #6240e3; /* rgb */ color: rgb(98, 64, 227); /* oklch */ color: oklch(51.5% 0.231 284.4);
Tailwind
colors: {
custom: {
50: '#9c78ed',
500: '#6240e3',
950: '#000000',
},
}SCSS
$custom: #6240e3; $custom-light: #9c78ed; $custom-dark: #000000;
JSON
{
"hex": "#6240e3",
"rgb": {
"r": 98,
"g": 64,
"b": 227
},
"hsl": {
"h": 252.515,
"s": 74.429,
"l": 57.059
},
"oklch": {
"l": 0.51506,
"c": 0.23071,
"h": 284.4
},
"luminance": 0.1181
}Semantic roles & 50–950 ramp
primary
#6240E3
secondary
#D3E19E
accent
#F137CA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84