#8170C8#8170C8

#8170C8 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.0% C 0.131 H 290.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8170C8
RGBrgb(129, 112, 200)
HSLhsl(252, 44%, 61%)
HSVhsv(252, 44%, 78%)
CMYKcmyk(35.5%, 44%, 0%, 21.6%)
CIE-LABlab(52.31, 27.05, -43.63)
CIE-LCHlch(52.31, 51.34, 301.80°)
OKLaboklab(59.97% 0.0466 -0.1228)
OKLCHoklch(59.97% 0.131 290.8)
XYZxyz(25.2700, 20.4250, 57.2434)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170C8 #B7C870
analogous
#708BC8 #8170C8 #AD70C8
triadic
#8170C8 #C88170 #70C881
tetradic
#8170C8 #C8708B #B7C870 #70C8AD
square
#8170C8 #C8708B #B7C870 #70C8AD
split-complementary
#8170C8 #C8AD70 #8BC870
monochromatic
#453589 #5B46B5 #8170C8 #A89CD9 #CFC8EA

Accessibility & contrast

On white

4.13
#8170C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8170C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170C8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170C8#FFFFFF#000000##000000
##8170C81.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#537ECB
Deuteranopia (green-blind)
#547BC6
Tritanopia (blue-blind)
#6F8192
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8170c8;
/* rgb */ color: rgb(129, 112, 200);
/* oklch */ color: oklch(60.0% 0.131 290.8);
Tailwind
colors: {
  custom: {
    50: '#a899d9',
    500: '#8170c8',
    950: '#000000',
  },
}
SCSS
$custom: #8170c8;
$custom-light: #a899d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8170c8",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 200
  },
  "hsl": {
    "h": 251.591,
    "s": 44.444,
    "l": 61.176
  },
  "oklch": {
    "l": 0.59969,
    "c": 0.13135,
    "h": 290.8
  },
  "luminance": 0.20426
}

Semantic roles & 50–950 ramp

primary
#8170C8
secondary
#D4DAB9
accent
#B82E9D
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8170C8

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

Preview Lab → · Contrast checker → · Palette generator →

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