#8170DF#8170DF

#8170DF is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.3% C 0.163 H 287.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8170DF
RGBrgb(129, 112, 223)
HSLhsl(249, 63%, 66%)
HSVhsv(249, 50%, 87%)
CMYKcmyk(42.2%, 49.8%, 0%, 12.5%)
CIE-LABlab(53.58, 33.42, -54.66)
CIE-LCHlch(53.58, 64.07, 301.44°)
OKLaboklab(61.33% 0.0493 -0.1551)
OKLCHoklch(61.33% 0.163 287.6)
XYZxyz(28.1630, 21.5822, 72.4796)
Luminance0.2158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170DF #CEDF70
analogous
#7096DF #8170DF #B870DF
triadic
#8170DF #DF8170 #70DF81
tetradic
#8170DF #DF7096 #CEDF70 #70DFB8
square
#8170DF #DF7096 #CEDF70 #70DFB8
split-complementary
#8170DF #DFB870 #96DF70
monochromatic
#3C27AE #553ED4 #8170DF #ADA2EA #D9D4F5

Accessibility & contrast

On white

3.95
#8170DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8170DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170DF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170DF#FFFFFF#000000##000000
##8170DF1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4183E3
Deuteranopia (green-blind)
#407DDC
Tritanopia (blue-blind)
#65879D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8170df;
/* rgb */ color: rgb(129, 112, 223);
/* oklch */ color: oklch(61.3% 0.163 287.6);
Tailwind
colors: {
  custom: {
    50: '#aa99e9',
    500: '#8170df',
    950: '#000000',
  },
}
SCSS
$custom: #8170df;
$custom-light: #aa99e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8170df",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 223
  },
  "hsl": {
    "h": 249.189,
    "s": 63.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61333,
    "c": 0.16274,
    "h": 287.6
  },
  "luminance": 0.21583
}

Semantic roles & 50–950 ramp

primary
#8170DF
secondary
#E2E8C3
accent
#CB1AB0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #8170DF

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

Preview Lab → · Contrast checker → · Palette generator →

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