#6172E2#6172E2
#6172E2 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.5% C 0.169 H 273.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #6172E2 |
|---|---|
| RGB | rgb(97, 114, 226) |
| HSL | hsl(232, 69%, 63%) |
| HSV | hsv(232, 57%, 89%) |
| CMYK | cmyk(57.1%, 49.6%, 0%, 11.4%) |
| CIE-LAB | lab(51.91, 26.22, -59.16) |
| CIE-LCH | lch(51.91, 64.71, 293.91°) |
| OKLab | oklab(59.54% 0.0108 -0.1691) |
| OKLCH | oklch(59.54% 0.169 273.6) |
| XYZ | xyz(24.6701, 20.0652, 74.5097) |
| Luminance | 0.2007 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 3.21
Cornflower
#6A79F7
ΔE00 3.79
Royal Blue
#4169E1
ΔE00 4.93
Lightish Blue
#3D7AFD
ΔE00 6.08
Mediumslateblue
#7B68EE
ΔE00 6.31
Dark Periwinkle
#665FD1
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6172E2 #E2D161
analogous
#61B2E2 #6172E2 #9061E2
triadic
#6172E2 #E26172 #72E261
tetradic
#6172E2 #E261B2 #E2D161 #61E290
square
#6172E2 #E261B2 #E2D161 #61E290
split-complementary
#6172E2 #E29061 #B2E261
monochromatic
#1F31A9 #2D44D9 #6172E2 #95A0EB #C8CEF5
Accessibility & contrast
On white
4.19
#6172E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#6172E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #6172E2
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6172E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##6172E2 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3882E6
Deuteranopia (green-blind)
#2176E0
Tritanopia (blue-blind)
#048B9F
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #6172e2; /* rgb */ color: rgb(97, 114, 226); /* oklch */ color: oklch(59.5% 0.169 273.6);
Tailwind
colors: {
custom: {
50: '#989aec',
500: '#6172e2',
950: '#000000',
},
}SCSS
$custom: #6172e2; $custom-light: #989aec; $custom-dark: #000000;
JSON
{
"hex": "#6172e2",
"rgb": {
"r": 97,
"g": 114,
"b": 226
},
"hsl": {
"h": 232.093,
"s": 68.984,
"l": 63.333
},
"oklch": {
"l": 0.59543,
"c": 0.16943,
"h": 273.6
},
"luminance": 0.20067
}Semantic roles & 50–950 ramp
primary
#6172E2
secondary
#E6E0B8
accent
#B815D1
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E16
muted
#7E7E84