#812173#812173

#812173 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.160 H 334.6°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#812173
RGBrgb(129, 33, 115)
HSLhsl(309, 59%, 32%)
HSVhsv(309, 74%, 51%)
CMYKcmyk(0%, 74.4%, 10.9%, 49.4%)
CIE-LABlab(31.79, 49.56, -25.08)
CIE-LCHlch(31.79, 55.54, 333.16°)
OKLaboklab(43.31% 0.1442 -0.0686)
OKLCHoklch(43.31% 0.16 334.6)
XYZxyz(12.6918, 6.9937, 16.8978)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812173 #21812F
analogous
#5F2181 #812173 #812143
triadic
#812173 #738121 #217381
tetradic
#812173 #815F21 #21812F #214381
square
#812173 #815F21 #21812F #214381
split-complementary
#812173 #438121 #21815F
monochromatic
#20081C #501548 #812173 #B22D9E #D14BBE

Accessibility & contrast

On white

8.76
#812173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#812173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812173
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812173#FFFFFF#000000##FFFFFF
##8121731.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204275
Deuteranopia (green-blind)
#425071
Tritanopia (blue-blind)
#872947
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #812173;
/* rgb */ color: rgb(129, 33, 115);
/* oklch */ color: oklch(43.3% 0.160 334.6);
Tailwind
colors: {
  custom: {
    50: '#a9669b',
    500: '#812173',
    950: '#000000',
  },
}
SCSS
$custom: #812173;
$custom-light: #a9669b;
$custom-dark: #000000;
JSON
{
  "hex": "#812173",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 308.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43309,
    "c": 0.15966,
    "h": 334.6
  },
  "luminance": 0.06993
}

Semantic roles & 50–950 ramp

primary
#812173
secondary
#4AB45A
accent
#E25C45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #812173

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

Preview Lab → · Contrast checker → · Palette generator →

#812173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva