#8170BF#8170BF

#8170BF is a mid, moderate violet. Relative luminance 0.200; OKLCH L 59.5% C 0.119 H 292.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8170BF
RGBrgb(129, 112, 191)
HSLhsl(253, 38%, 59%)
HSVhsv(253, 41%, 75%)
CMYKcmyk(32.5%, 41.4%, 0%, 25.1%)
CIE-LABlab(51.86, 24.64, -39.20)
CIE-LCHlch(51.86, 46.30, 302.15°)
OKLaboklab(59.47% 0.0451 -0.1099)
OKLCHoklch(59.47% 0.119 292.3)
XYZxyz(24.2490, 20.0166, 51.8661)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170BF #AEBF70
analogous
#7087BF #8170BF #A870BF
triadic
#8170BF #BF8170 #70BF81
tetradic
#8170BF #BF7087 #AEBF70 #70BFA8
square
#8170BF #BF7087 #AEBF70 #70BFA8
split-complementary
#8170BF #BFA870 #87BF70
monochromatic
#47387D #5F4BA7 #8170BF #A69AD2 #CCC5E5

Accessibility & contrast

On white

4.20
#8170BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8170BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170BF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170BF#FFFFFF#000000##000000
##8170BF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#587DC2
Deuteranopia (green-blind)
#5A7ABD
Tritanopia (blue-blind)
#737F8E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8170bf;
/* rgb */ color: rgb(129, 112, 191);
/* oklch */ color: oklch(59.5% 0.119 292.3);
Tailwind
colors: {
  custom: {
    50: '#a899d2',
    500: '#8170bf',
    950: '#000000',
  },
}
SCSS
$custom: #8170bf;
$custom-light: #a899d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8170bf",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 191
  },
  "hsl": {
    "h": 252.911,
    "s": 38.164,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59473,
    "c": 0.11878,
    "h": 292.3
  },
  "luminance": 0.20017
}

Semantic roles & 50–950 ramp

primary
#8170BF
secondary
#CED5B6
accent
#CE5AB5
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8170BF

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

Preview Lab → · Contrast checker → · Palette generator →

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