#8170F3#8170F3
#8170F3 is a light, vivid blue. Relative luminance 0.227; OKLCH L 62.6% C 0.189 H 285.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #8170F3 |
|---|---|
| RGB | rgb(129, 112, 243) |
| HSL | hsl(248, 85%, 70%) |
| HSV | hsv(248, 54%, 95%) |
| CMYK | cmyk(46.9%, 53.9%, 0%, 4.7%) |
| CIE-LAB | lab(54.79, 39.13, -63.91) |
| CIE-LCH | lch(54.79, 74.94, 301.47°) |
| OKLab | oklab(62.62% 0.0504 -0.1823) |
| OKLCH | oklch(62.62% 0.189 285.5) |
| XYZ | xyz(31.0203, 22.7251, 87.5285) |
| Luminance | 0.2273 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.63
Cornflower
#6A79F7
ΔE00 5.35
Mediumpurple
#9370DB
ΔE00 5.47
Periwinkle (survey)
#8E82FE
ΔE00 5.54
Lavender Blue
#8B88F8
ΔE00 7.05
Purpley
#8756E4
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8170F3 #E2F370
analogous
#70A1F3 #8170F3 #C270F3
triadic
#8170F3 #F38170 #70F381
tetradic
#8170F3 #F370A1 #E2F370 #70F3C2
square
#8170F3 #F370A1 #E2F370 #70F3C2
split-complementary
#8170F3 #F3C270 #A1F370
monochromatic
#2C12D7 #4F38EE #8170F3 #B3A8F8 #E4E1FC
Accessibility & contrast
On white
3.79
#8170F3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.55
#8170F3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8170F3
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8170F3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8170F3 | 1.00 | 3.79 | 5.55 | 5.55 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2787F7
Deuteranopia (green-blind)
#227FF0
Tritanopia (blue-blind)
#5A8DA7
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #8170f3; /* rgb */ color: rgb(129, 112, 243); /* oklch */ color: oklch(62.6% 0.189 285.5);
Tailwind
colors: {
custom: {
50: '#ac99f8',
500: '#8170f3',
950: '#000000',
},
}SCSS
$custom: #8170f3; $custom-light: #ac99f8; $custom-dark: #000000;
JSON
{
"hex": "#8170f3",
"rgb": {
"r": 129,
"g": 112,
"b": 243
},
"hsl": {
"h": 247.786,
"s": 84.516,
"l": 69.608
},
"oklch": {
"l": 0.62621,
"c": 0.18913,
"h": 285.5
},
"luminance": 0.22727
}Semantic roles & 50–950 ramp
primary
#8170F3
secondary
#EDF2CD
accent
#E105C4
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85