#8170E2#8170E2

#8170E2 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.5% C 0.167 H 287.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8170E2
RGBrgb(129, 112, 226)
HSLhsl(249, 66%, 66%)
HSVhsv(249, 50%, 89%)
CMYKcmyk(42.9%, 50.4%, 0%, 11.4%)
CIE-LABlab(53.76, 34.27, -56.07)
CIE-LCHlch(53.76, 65.71, 301.43°)
OKLaboklab(61.52% 0.0495 -0.1592)
OKLCHoklch(61.52% 0.167 287.3)
XYZxyz(28.5710, 21.7454, 74.6286)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170E2 #D1E270
analogous
#7098E2 #8170E2 #BA70E2
triadic
#8170E2 #E28170 #70E281
tetradic
#8170E2 #E27098 #D1E270 #70E2BA
square
#8170E2 #E27098 #D1E270 #70E2BA
split-complementary
#8170E2 #E2BA70 #98E270
monochromatic
#3A24B3 #543DD8 #8170E2 #AEA3EC #DBD6F7

Accessibility & contrast

On white

3.93
#8170E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8170E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170E2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170E2#FFFFFF#000000##000000
##8170E21.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E83E6
Deuteranopia (green-blind)
#3D7DDF
Tritanopia (blue-blind)
#64889E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8170e2;
/* rgb */ color: rgb(129, 112, 226);
/* oklch */ color: oklch(61.5% 0.167 287.3);
Tailwind
colors: {
  custom: {
    50: '#ab99ec',
    500: '#8170e2',
    950: '#000000',
  },
}
SCSS
$custom: #8170e2;
$custom-light: #ab99ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8170e2",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 248.947,
    "s": 66.279,
    "l": 66.275
  },
  "oklch": {
    "l": 0.6152,
    "c": 0.16675,
    "h": 287.3
  },
  "luminance": 0.21746
}

Semantic roles & 50–950 ramp

primary
#8170E2
secondary
#E4EAC4
accent
#CE17B3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #8170E2

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

Preview Lab → · Contrast checker → · Palette generator →

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