#8170BB#8170BB

#8170BB is a mid, moderate violet. Relative luminance 0.198; OKLCH L 59.3% C 0.113 H 293.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8170BB
RGBrgb(129, 112, 187)
HSLhsl(254, 36%, 59%)
HSVhsv(254, 40%, 73%)
CMYKcmyk(31%, 40.1%, 0%, 26.7%)
CIE-LABlab(51.66, 23.58, -37.21)
CIE-LCHlch(51.66, 44.05, 302.36°)
OKLaboklab(59.26% 0.0443 -0.1041)
OKLCHoklch(59.26% 0.113 293)
XYZxyz(23.8148, 19.8429, 49.5794)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8170BB #AABB70
analogous
#7084BB #8170BB #A670BB
triadic
#8170BB #BB8170 #70BB81
tetradic
#8170BB #BB7084 #AABB70 #70BBA6
square
#8170BB #BB7084 #AABB70 #70BBA6
split-complementary
#8170BB #BBA670 #84BB70
monochromatic
#473978 #604DA1 #8170BB #A699CF #CAC3E2

Accessibility & contrast

On white

4.23
#8170BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#8170BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8170BB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8170BB#FFFFFF#000000##000000
##8170BB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7CBE
Deuteranopia (green-blind)
#5C7AB9
Tritanopia (blue-blind)
#747E8C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8170bb;
/* rgb */ color: rgb(129, 112, 187);
/* oklch */ color: oklch(59.3% 0.113 293.0);
Tailwind
colors: {
  custom: {
    50: '#a799d0',
    500: '#8170bb',
    950: '#000000',
  },
}
SCSS
$custom: #8170bb;
$custom-light: #a799d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8170bb",
  "rgb": {
    "r": 129,
    "g": 112,
    "b": 187
  },
  "hsl": {
    "h": 253.6,
    "s": 35.545,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59259,
    "c": 0.11315,
    "h": 293
  },
  "luminance": 0.19843
}

Semantic roles & 50–950 ramp

primary
#8170BB
secondary
#CCD2B5
accent
#CC5CB2
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8170BB

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

Preview Lab → · Contrast checker → · Palette generator →

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