#6151C8#6151C8
#6151C8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.7% C 0.178 H 284.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #6151C8 |
|---|---|
| RGB | rgb(97, 81, 200) |
| HSL | hsl(248, 52%, 55%) |
| HSV | hsv(248, 60%, 78%) |
| CMYK | cmyk(51.5%, 59.5%, 0%, 21.6%) |
| CIE-LAB | lab(42.15, 38.05, -60.08) |
| CIE-LCH | lch(42.15, 71.12, 302.35°) |
| OKLab | oklab(51.71% 0.0443 -0.1721) |
| OKLCH | oklch(51.71% 0.178 284.4) |
| XYZ | xyz(18.2944, 12.5954, 56.0996) |
| Luminance | 0.1260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.20
Slate Blue
#6A5ACD
ΔE00 3.04
Light Indigo
#6D5ACF
ΔE00 3.38
Bluey Purple
#6241C7
ΔE00 4.33
Dark Periwinkle
#665FD1
ΔE00 4.48
Warm Blue
#4B57DB
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6151C8 #B8C851
analogous
#517DC8 #6151C8 #9C51C8
triadic
#6151C8 #C86151 #51C861
tetradic
#6151C8 #C8517D #B8C851 #51C89C
square
#6151C8 #C8517D #B8C851 #51C89C
split-complementary
#6151C8 #C89C51 #7DC851
monochromatic
#312679 #4435A7 #6151C8 #8B80D7 #B5AEE5
Accessibility & contrast
On white
5.97
#6151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#6151C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6151C8
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6151C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6151C8 | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#396D85
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #6151c8; /* rgb */ color: rgb(97, 81, 200); /* oklch */ color: oklch(51.7% 0.178 284.4);
Tailwind
colors: {
custom: {
50: '#9682d9',
500: '#6151c8',
950: '#000000',
},
}SCSS
$custom: #6151c8; $custom-light: #9682d9; $custom-dark: #000000;
JSON
{
"hex": "#6151c8",
"rgb": {
"r": 97,
"g": 81,
"b": 200
},
"hsl": {
"h": 248.067,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.51707,
"c": 0.17767,
"h": 284.4
},
"luminance": 0.12596
}Semantic roles & 50–950 ramp
primary
#6151C8
secondary
#CDD3A1
accent
#DB4CC8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83