#8170DE#8170DE

#8170DE is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.3% C 0.161 H 287.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8170DE
RGBrgb(129, 112, 222)
HSLhsl(249, 63%, 65%)
HSVhsv(249, 50%, 87%)
CMYKcmyk(41.9%, 49.5%, 0%, 12.9%)
CIE-LABlab(53.52, 33.14, -54.19)
CIE-LCHlch(53.52, 63.52, 301.45°)
OKLaboklab(61.27% 0.0492 -0.1537)
OKLCHoklch(61.27% 0.161 287.8)
XYZxyz(28.0285, 21.5284, 71.7717)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170DE #CDDE70
analogous
#7096DE #8170DE #B870DE
triadic
#8170DE #DE8170 #70DE81
tetradic
#8170DE #DE7096 #CDDE70 #70DEB8
square
#8170DE #DE7096 #CDDE70 #70DEB8
split-complementary
#8170DE #DEB870 #96DE70
monochromatic
#3C28AC #553ED3 #8170DE #ADA2E9 #D9D3F5

Accessibility & contrast

On white

3.96
#8170DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8170DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170DE
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170DE#FFFFFF#000000##000000
##8170DE1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4282E2
Deuteranopia (green-blind)
#417DDC
Tritanopia (blue-blind)
#66879D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8170de;
/* rgb */ color: rgb(129, 112, 222);
/* oklch */ color: oklch(61.3% 0.161 287.8);
Tailwind
colors: {
  custom: {
    50: '#aa99e9',
    500: '#8170de',
    950: '#000000',
  },
}
SCSS
$custom: #8170de;
$custom-light: #aa99e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8170de",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 222
  },
  "hsl": {
    "h": 249.273,
    "s": 62.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61271,
    "c": 0.1614,
    "h": 287.8
  },
  "luminance": 0.21529
}

Semantic roles & 50–950 ramp

primary
#8170DE
secondary
#E2E7C2
accent
#CA1BAF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #8170DE

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

Preview Lab → · Contrast checker → · Palette generator →

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