#8172CA#8172CA

#8172CA is a mid, vivid violet. Relative luminance 0.210; OKLCH L 60.5% C 0.131 H 289.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8172CA
RGBrgb(129, 114, 202)
HSLhsl(250, 45%, 62%)
HSVhsv(250, 44%, 79%)
CMYKcmyk(36.1%, 43.6%, 0%, 20.8%)
CIE-LABlab(52.91, 26.41, -43.83)
CIE-LCHlch(52.91, 51.17, 301.07°)
OKLaboklab(60.46% 0.0442 -0.1234)
OKLCHoklch(60.46% 0.131 289.7)
XYZxyz(25.7284, 20.9653, 58.5568)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172CA #BBCA72
analogous
#728FCA #8172CA #AD72CA
triadic
#8172CA #CA8172 #72CA81
tetradic
#8172CA #CA728F #BBCA72 #72CAAD
square
#8172CA #CA728F #BBCA72 #72CAAD
split-complementary
#8172CA #CAAD72 #8FCA72
monochromatic
#44358D #5946B9 #8172CA #A99EDB #D0CBEB

Accessibility & contrast

On white

4.04
#8172CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8172CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172CA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172CA#FFFFFF#000000##000000
##8172CA1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5480CD
Deuteranopia (green-blind)
#557CC8
Tritanopia (blue-blind)
#6E8394
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8172ca;
/* rgb */ color: rgb(129, 114, 202);
/* oklch */ color: oklch(60.5% 0.131 289.7);
Tailwind
colors: {
  custom: {
    50: '#a89ada',
    500: '#8172ca',
    950: '#000000',
  },
}
SCSS
$custom: #8172ca;
$custom-light: #a89ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8172ca",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 250.227,
    "s": 45.361,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60455,
    "c": 0.13107,
    "h": 289.7
  },
  "luminance": 0.20966
}

Semantic roles & 50–950 ramp

primary
#8172CA
secondary
#D7DCBC
accent
#B92DA1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #8172CA

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

Preview Lab → · Contrast checker → · Palette generator →

#8172CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva