#8170BC#8170BC

#8170BC is a mid, moderate violet. Relative luminance 0.199; OKLCH L 59.3% C 0.115 H 292.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8170BC
RGBrgb(129, 112, 188)
HSLhsl(253, 36%, 59%)
HSVhsv(253, 40%, 74%)
CMYKcmyk(31.4%, 40.4%, 0%, 26.3%)
CIE-LABlab(51.71, 23.84, -37.71)
CIE-LCHlch(51.71, 44.62, 302.30°)
OKLaboklab(59.31% 0.0445 -0.1056)
OKLCHoklch(59.31% 0.115 292.9)
XYZxyz(23.9222, 19.8859, 50.1452)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170BC #ABBC70
analogous
#7085BC #8170BC #A770BC
triadic
#8170BC #BC8170 #70BC81
tetradic
#8170BC #BC7085 #ABBC70 #70BCA7
square
#8170BC #BC7085 #ABBC70 #70BCA7
split-complementary
#8170BC #BCA770 #85BC70
monochromatic
#473979 #604CA3 #8170BC #A69AD0 #CAC3E3

Accessibility & contrast

On white

4.22
#8170BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8170BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170BC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170BC#FFFFFF#000000##000000
##8170BC1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#597CBF
Deuteranopia (green-blind)
#5B7ABA
Tritanopia (blue-blind)
#747E8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8170bc;
/* rgb */ color: rgb(129, 112, 188);
/* oklch */ color: oklch(59.3% 0.115 292.9);
Tailwind
colors: {
  custom: {
    50: '#a799d0',
    500: '#8170bc',
    950: '#000000',
  },
}
SCSS
$custom: #8170bc;
$custom-light: #a799d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8170bc",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 188
  },
  "hsl": {
    "h": 253.421,
    "s": 36.19,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59312,
    "c": 0.11456,
    "h": 292.9
  },
  "luminance": 0.19886
}

Semantic roles & 50–950 ramp

primary
#8170BC
secondary
#CCD3B5
accent
#CC5CB3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8170BC

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

Preview Lab → · Contrast checker → · Palette generator →

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