#8171F4#8171F4

#8171F4 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.9% C 0.189 H 285.1°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8171F4
RGBrgb(129, 113, 244)
HSLhsl(247, 86%, 70%)
HSVhsv(247, 54%, 96%)
CMYKcmyk(47.1%, 53.7%, 0%, 4.3%)
CIE-LABlab(55.08, 38.84, -64.00)
CIE-LCHlch(55.08, 74.86, 301.25°)
OKLaboklab(62.86% 0.0494 -0.1825)
OKLCHoklch(62.86% 0.189 285.1)
XYZxyz(31.2827, 23.0076, 88.3630)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8171F4 #E4F471
analogous
#71A3F4 #8171F4 #C271F4
triadic
#8171F4 #F48171 #71F481
tetradic
#8171F4 #F471A3 #E4F471 #71F4C2
square
#8171F4 #F471A3 #E4F471 #71F4C2
split-complementary
#8171F4 #F4C271 #A3F471
monochromatic
#2911DA #4F38F0 #8171F4 #B3AAF8 #E6E3FD

Accessibility & contrast

On white

3.75
#8171F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#8171F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8171F4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8171F4#FFFFFF#000000##000000
##8171F41.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2988F8
Deuteranopia (green-blind)
#2380F1
Tritanopia (blue-blind)
#5A8EA8
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8171f4;
/* rgb */ color: rgb(129, 113, 244);
/* oklch */ color: oklch(62.9% 0.189 285.1);
Tailwind
colors: {
  custom: {
    50: '#ac9af8',
    500: '#8171f4',
    950: '#000000',
  },
}
SCSS
$custom: #8171f4;
$custom-light: #ac9af8;
$custom-dark: #000000;
JSON
{
  "hex": "#8171f4",
  "rgb": {
    "r": 129,
    "g": 113,
    "b": 244
  },
  "hsl": {
    "h": 247.328,
    "s": 85.621,
    "l": 70
  },
  "oklch": {
    "l": 0.62858,
    "c": 0.18908,
    "h": 285.1
  },
  "luminance": 0.23009
}

Semantic roles & 50–950 ramp

primary
#8171F4
secondary
#EEF3CE
accent
#E203C7
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8171F4

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

Preview Lab → · Contrast checker → · Palette generator →

#8171F4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva