#8172CD#8172CD

#8172CD is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.6% C 0.135 H 289.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8172CD
RGBrgb(129, 114, 205)
HSLhsl(250, 48%, 63%)
HSVhsv(250, 44%, 80%)
CMYKcmyk(37.1%, 44.4%, 0%, 19.6%)
CIE-LABlab(53.07, 27.23, -45.29)
CIE-LCHlch(53.07, 52.84, 301.01°)
OKLaboklab(60.62% 0.0447 -0.1276)
OKLCHoklch(60.62% 0.135 289.3)
XYZxyz(26.0870, 21.1088, 60.4457)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8172CD #BECD72
analogous
#7291CD #8172CD #AE72CD
triadic
#8172CD #CD8172 #72CD81
tetradic
#8172CD #CD7291 #BECD72 #72CDAE
square
#8172CD #CD7291 #BECD72 #72CDAE
split-complementary
#8172CD #CDAE72 #91CD72
monochromatic
#433391 #5945BD #8172CD #A99FDD #D2CCED

Accessibility & contrast

On white

4.02
#8172CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8172CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8172CD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8172CD#FFFFFF#000000##000000
##8172CD1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5381D0
Deuteranopia (green-blind)
#537DCB
Tritanopia (blue-blind)
#6D8496
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8172cd;
/* rgb */ color: rgb(129, 114, 205);
/* oklch */ color: oklch(60.6% 0.135 289.3);
Tailwind
colors: {
  custom: {
    50: '#a99add',
    500: '#8172cd',
    950: '#000000',
  },
}
SCSS
$custom: #8172cd;
$custom-light: #a99add;
$custom-dark: #000000;
JSON
{
  "hex": "#8172cd",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 249.89,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60625,
    "c": 0.13524,
    "h": 289.3
  },
  "luminance": 0.2111
}

Semantic roles & 50–950 ramp

primary
#8172CD
secondary
#D8DEBD
accent
#BB2BA3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #8172CD

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

Preview Lab → · Contrast checker → · Palette generator →

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