#8171EA#8171EA

#8171EA is a light, vivid blue. Relative luminance 0.224; OKLCH L 62.2% C 0.176 H 286.1°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8171EA
RGBrgb(129, 113, 234)
HSLhsl(248, 74%, 68%)
HSVhsv(248, 52%, 92%)
CMYKcmyk(44.9%, 51.7%, 0%, 8.2%)
CIE-LABlab(54.47, 35.96, -59.41)
CIE-LCHlch(54.47, 69.45, 301.18°)
OKLaboklab(62.2% 0.0489 -0.169)
OKLCHoklch(62.2% 0.176 286.1)
XYZxyz(29.8054, 22.4166, 80.5823)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8171EA #DAEA71
analogous
#719DEA #8171EA #BD71EA
triadic
#8171EA #EA8171 #71EA81
tetradic
#8171EA #EA719D #DAEA71 #71EABD
square
#8171EA #EA719D #DAEA71 #71EABD
split-complementary
#8171EA #EABD71 #9DEA71
monochromatic
#331DC4 #523CE2 #8171EA #B0A6F2 #E0DCFA

Accessibility & contrast

On white

3.83
#8171EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#8171EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8171EA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8171EA#FFFFFF#000000##000000
##8171EA1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3786EE
Deuteranopia (green-blind)
#357FE7
Tritanopia (blue-blind)
#608BA3
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8171ea;
/* rgb */ color: rgb(129, 113, 234);
/* oklch */ color: oklch(62.2% 0.176 286.1);
Tailwind
colors: {
  custom: {
    50: '#ab9af1',
    500: '#8171ea',
    950: '#000000',
  },
}
SCSS
$custom: #8171ea;
$custom-light: #ab9af1;
$custom-dark: #000000;
JSON
{
  "hex": "#8171ea",
  "rgb": {
    "r": 129,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 247.934,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.62204,
    "c": 0.17597,
    "h": 286.1
  },
  "luminance": 0.22418
}

Semantic roles & 50–950 ramp

primary
#8171EA
secondary
#E9EEC9
accent
#D60FBC
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8171EA

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

Preview Lab → · Contrast checker → · Palette generator →

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