#7170F2#7170F2
#7170F2 is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.3% C 0.190 H 279.6°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7170F2 |
|---|---|
| RGB | rgb(113, 112, 242) |
| HSL | hsl(240, 83%, 69%) |
| HSV | hsv(240, 54%, 95%) |
| CMYK | cmyk(53.3%, 53.7%, 0%, 5.1%) |
| CIE-LAB | lab(53.50, 35.58, -65.50) |
| CIE-LCH | lch(53.50, 74.54, 298.51°) |
| OKLab | oklab(61.34% 0.0315 -0.1874) |
| OKLCH | oklch(61.34% 0.19 279.6) |
| XYZ | xyz(28.6262, 21.5081, 86.6302) |
| Luminance | 0.2151 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.25
Cornflower
#6A79F7
ΔE00 3.40
Periwinkle (survey)
#8E82FE
ΔE00 6.84
Cornflower Blue
#5170D7
ΔE00 6.91
Dark Periwinkle
#665FD1
ΔE00 7.45
Mediumpurple
#9370DB
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7170F2 #F1F270
analogous
#70B0F2 #7170F2 #B270F2
triadic
#7170F2 #F27170 #70F271
tetradic
#7170F2 #F270B0 #F1F270 #70F2B2
square
#7170F2 #F270B0 #F1F270 #70F2B2
split-complementary
#7170F2 #F2B270 #B0F270
monochromatic
#1513D4 #3938ED #7170F2 #A9A8F7 #E0E0FC
Accessibility & contrast
On white
3.96
#7170F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.30
#7170F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7170F2
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7170F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7170F2 | 1.00 | 3.96 | 5.30 | 5.30 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F85F6
Deuteranopia (green-blind)
#007BEF
Tritanopia (blue-blind)
#358EA6
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #7170f2; /* rgb */ color: rgb(113, 112, 242); /* oklch */ color: oklch(61.3% 0.190 279.6);
Tailwind
colors: {
custom: {
50: '#a399f7',
500: '#7170f2',
950: '#000000',
},
}SCSS
$custom: #7170f2; $custom-light: #a399f7; $custom-dark: #000000;
JSON
{
"hex": "#7170f2",
"rgb": {
"r": 113,
"g": 112,
"b": 242
},
"hsl": {
"h": 240.462,
"s": 83.333,
"l": 69.412
},
"oklch": {
"l": 0.61337,
"c": 0.19,
"h": 279.6
},
"luminance": 0.2151
}Semantic roles & 50–950 ramp
primary
#7170F2
secondary
#F1F2CC
accent
#E006DE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85