#8170F5#8170F5

#8170F5 is a light, vivid blue. Relative luminance 0.228; OKLCH L 62.8% C 0.192 H 285.3°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8170F5
RGBrgb(129, 112, 245)
HSLhsl(248, 87%, 70%)
HSVhsv(248, 54%, 96%)
CMYKcmyk(47.3%, 54.3%, 0%, 3.9%)
CIE-LABlab(54.91, 39.70, -64.82)
CIE-LCHlch(54.91, 76.02, 301.49°)
OKLaboklab(62.76% 0.0505 -0.1849)
OKLCHoklch(62.76% 0.192 285.3)
XYZxyz(31.3240, 22.8466, 89.1278)
Luminance0.2285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170F5 #E4F570
analogous
#70A2F5 #8170F5 #C370F5
triadic
#8170F5 #F58170 #70F581
tetradic
#8170F5 #F570A2 #E4F570 #70F5C3
square
#8170F5 #F570A2 #E4F570 #70F5C3
split-complementary
#8170F5 #F5C370 #A2F570
monochromatic
#290FDB #4F37F1 #8170F5 #B3A9F9 #E6E2FD

Accessibility & contrast

On white

3.77
#8170F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8170F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170F5
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170F5#FFFFFF#000000##000000
##8170F51.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2387FA
Deuteranopia (green-blind)
#1C7FF2
Tritanopia (blue-blind)
#598DA8
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8170f5;
/* rgb */ color: rgb(129, 112, 245);
/* oklch */ color: oklch(62.8% 0.192 285.3);
Tailwind
colors: {
  custom: {
    50: '#ad99f9',
    500: '#8170f5',
    950: '#000000',
  },
}
SCSS
$custom: #8170f5;
$custom-light: #ad99f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8170f5",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 245
  },
  "hsl": {
    "h": 247.669,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.62755,
    "c": 0.19172,
    "h": 285.3
  },
  "luminance": 0.22848
}

Semantic roles & 50–950 ramp

primary
#8170F5
secondary
#EEF3CE
accent
#E302C7
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8170F5

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8170F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva