#6151D8#6151D8
#6151D8 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.9% C 0.198 H 282.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #6151D8 |
|---|---|
| RGB | rgb(97, 81, 216) |
| HSL | hsl(247, 63%, 58%) |
| HSV | hsv(247, 63%, 85%) |
| CMYK | cmyk(55.1%, 62.5%, 0%, 15.3%) |
| CIE-LAB | lab(43.33, 42.94, -67.36) |
| CIE-LCH | lch(43.33, 79.88, 302.52°) |
| OKLab | oklab(52.95% 0.0434 -0.1935) |
| OKLCH | oklch(52.95% 0.198 282.6) |
| XYZ | xyz(20.2631, 13.3829, 66.4678) |
| Luminance | 0.1338 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Slate Blue
#6A5ACD
ΔE00 3.22
Light Indigo
#6D5ACF
ΔE00 3.35
Iris
#6258C4
ΔE00 3.46
Warm Blue
#4B57DB
ΔE00 3.87
Dark Periwinkle
#665FD1
ΔE00 4.24
Purpleish Blue
#6140EF
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6151D8 #C8D851
analogous
#5184D8 #6151D8 #A451D8
triadic
#6151D8 #D86151 #51D861
tetradic
#6151D8 #D85184 #C8D851 #51D8A4
square
#6151D8 #D85184 #C8D851 #51D8A4
split-complementary
#6151D8 #D8A451 #84D851
monochromatic
#2D208F #3D2BC1 #6151D8 #8E83E3 #BCB5EE
Accessibility & contrast
On white
5.71
#6151D8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#6151D8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6151D8
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6151D8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6151D8 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#0062D5
Tritanopia (blue-blind)
#28728D
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #6151d8; /* rgb */ color: rgb(97, 81, 216); /* oklch */ color: oklch(52.9% 0.198 282.6);
Tailwind
colors: {
custom: {
50: '#9883e5',
500: '#6151d8',
950: '#000000',
},
}SCSS
$custom: #6151d8; $custom-light: #9883e5; $custom-dark: #000000;
JSON
{
"hex": "#6151d8",
"rgb": {
"r": 97,
"g": 81,
"b": 216
},
"hsl": {
"h": 247.111,
"s": 63.38,
"l": 58.235
},
"oklch": {
"l": 0.52949,
"c": 0.19826,
"h": 282.6
},
"luminance": 0.13384
}Semantic roles & 50–950 ramp
primary
#6151D8
secondary
#D7DDA8
accent
#E641D3
background
#FAF8FE
surface
#F3EFFC
border
#CDCAD5
text
#0F0A16
muted
#7F7C84