#8170CD#8170CD

#8170CD is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.3% C 0.138 H 290.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8170CD
RGBrgb(129, 112, 205)
HSLhsl(251, 48%, 62%)
HSVhsv(251, 45%, 80%)
CMYKcmyk(37.1%, 45.4%, 0%, 19.6%)
CIE-LABlab(52.58, 28.41, -46.07)
CIE-LCHlch(52.58, 54.12, 301.66°)
OKLaboklab(60.26% 0.0473 -0.1299)
OKLCHoklch(60.26% 0.138 290)
XYZxyz(25.8639, 20.6625, 60.3713)
Luminance0.2066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170CD #BCCD70
analogous
#708DCD #8170CD #B070CD
triadic
#8170CD #CD8170 #70CD81
tetradic
#8170CD #CD708D #BCCD70 #70CDB0
square
#8170CD #CD708D #BCCD70 #70CDB0
split-complementary
#8170CD #CDB070 #8DCD70
monochromatic
#443290 #5943BD #8170CD #A99DDD #D1CBED

Accessibility & contrast

On white

4.09
#8170CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#8170CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170CD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170CD#FFFFFF#000000##000000
##8170CD1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FD0
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#6D8295
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8170cd;
/* rgb */ color: rgb(129, 112, 205);
/* oklch */ color: oklch(60.3% 0.138 290.0);
Tailwind
colors: {
  custom: {
    50: '#a999dd',
    500: '#8170cd',
    950: '#000000',
  },
}
SCSS
$custom: #8170cd;
$custom-light: #a999dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8170cd",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 250.968,
    "s": 48.187,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60255,
    "c": 0.13827,
    "h": 290
  },
  "luminance": 0.20663
}

Semantic roles & 50–950 ramp

primary
#8170CD
secondary
#D7DDBB
accent
#BB2AA1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #8170CD

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

Preview Lab → · Contrast checker → · Palette generator →

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