#6158CA#6158CA
#6158CA is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.1% C 0.171 H 282.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #6158CA |
|---|---|
| RGB | rgb(97, 88, 202) |
| HSL | hsl(245, 52%, 57%) |
| HSV | hsv(245, 56%, 79%) |
| CMYK | cmyk(52%, 56.4%, 0%, 20.8%) |
| CIE-LAB | lab(43.92, 34.46, -58.37) |
| CIE-LCH | lch(43.92, 67.78, 300.56°) |
| OKLab | oklab(53.06% 0.0368 -0.167) |
| OKLCH | oklch(53.06% 0.171 282.4) |
| XYZ | xyz(19.0769, 13.7840, 57.5210) |
| Luminance | 0.1379 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 0.92
Slate Blue
#6A5ACD
ΔE00 1.72
Light Indigo
#6D5ACF
ΔE00 2.30
Dark Periwinkle
#665FD1
ΔE00 2.47
Warm Blue
#4B57DB
ΔE00 3.86
Bluey Purple
#6241C7
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6158CA #C1CA58
analogous
#5888CA #6158CA #9A58CA
triadic
#6158CA #CA6158 #58CA61
tetradic
#6158CA #CA5888 #C1CA58 #58CA9A
square
#6158CA #CA5888 #C1CA58 #58CA9A
split-complementary
#6158CA #CA9A58 #88CA58
monochromatic
#2F287F #4037AE #6158CA #8D86D9 #B9B5E7
Accessibility & contrast
On white
5.59
#6158CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.76
#6158CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6158CA
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6158CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6158CA | 1.00 | 5.59 | 3.76 | 5.59 |
| #FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CCE
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#367288
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #6158ca; /* rgb */ color: rgb(97, 88, 202); /* oklch */ color: oklch(53.1% 0.171 282.4);
Tailwind
colors: {
custom: {
50: '#9687db',
500: '#6158ca',
950: '#000000',
},
}SCSS
$custom: #6158ca; $custom-light: #9687db; $custom-dark: #000000;
JSON
{
"hex": "#6158ca",
"rgb": {
"r": 97,
"g": 88,
"b": 202
},
"hsl": {
"h": 244.737,
"s": 51.818,
"l": 56.863
},
"oklch": {
"l": 0.53061,
"c": 0.17099,
"h": 282.4
},
"luminance": 0.13785
}Semantic roles & 50–950 ramp
primary
#6158CA
secondary
#D2D6A8
accent
#DB4DD0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83