#812181#812181

#812181 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.171 H 328.0°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#812181
RGBrgb(129, 33, 129)
HSLhsl(300, 59%, 32%)
HSVhsv(300, 74%, 51%)
CMYKcmyk(0%, 74.4%, 0%, 49.4%)
CIE-LABlab(32.57, 51.90, -32.66)
CIE-LCHlch(32.57, 61.33, 327.82°)
OKLaboklab(44.12% 0.1448 -0.0905)
OKLCHoklch(44.12% 0.171 328)
XYZxyz(13.5594, 7.3408, 21.4674)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812181 #218121
analogous
#512181 #812181 #812151
triadic
#812181 #818121 #218181
tetradic
#812181 #815121 #218121 #215181
square
#812181 #815121 #218121 #215181
split-complementary
#812181 #518121 #218151
monochromatic
#200820 #501550 #812181 #B22DB2 #D14BD1

Accessibility & contrast

On white

8.51
#812181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#812181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812181
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812181#FFFFFF#000000##FFFFFF
##8121811.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4584
Deuteranopia (green-blind)
#3B517F
Tritanopia (blue-blind)
#85304F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #812181;
/* rgb */ color: rgb(129, 33, 129);
/* oklch */ color: oklch(44.1% 0.171 328.0);
Tailwind
colors: {
  custom: {
    50: '#a967a6',
    500: '#812181',
    950: '#000000',
  },
}
SCSS
$custom: #812181;
$custom-light: #a967a6;
$custom-dark: #000000;
JSON
{
  "hex": "#812181",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 300,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4412,
    "c": 0.17074,
    "h": 328
  },
  "luminance": 0.0734
}

Semantic roles & 50–950 ramp

primary
#812181
secondary
#4AB44A
accent
#E24545
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #812181

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

Preview Lab → · Contrast checker → · Palette generator →

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