#812182#812182

#812182 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.172 H 327.6°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#812182
RGBrgb(129, 33, 130)
HSLhsl(299, 60%, 32%)
HSVhsv(299, 75%, 51%)
CMYKcmyk(0.8%, 74.6%, 0%, 49%)
CIE-LABlab(32.63, 52.08, -33.19)
CIE-LCHlch(32.63, 61.76, 327.49°)
OKLaboklab(44.18% 0.1448 -0.092)
OKLCHoklch(44.18% 0.172 327.6)
XYZxyz(13.6262, 7.3675, 21.8191)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812182 #228221
analogous
#502182 #812182 #822153
triadic
#812182 #828121 #218281
tetradic
#812182 #825021 #228221 #215382
square
#812182 #825021 #228221 #215382
split-complementary
#812182 #538221 #218250
monochromatic
#200820 #511551 #812182 #B12DB3 #D04CD2

Accessibility & contrast

On white

8.49
#812182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812182
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812182#FFFFFF#000000##FFFFFF
##8121821.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4585
Deuteranopia (green-blind)
#3A5180
Tritanopia (blue-blind)
#853050
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #812182;
/* rgb */ color: rgb(129, 33, 130);
/* oklch */ color: oklch(44.2% 0.172 327.6);
Tailwind
colors: {
  custom: {
    50: '#a967a7',
    500: '#812182',
    950: '#000000',
  },
}
SCSS
$custom: #812182;
$custom-light: #a967a7;
$custom-dark: #000000;
JSON
{
  "hex": "#812182",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 299.381,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44181,
    "c": 0.17157,
    "h": 327.6
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#812182
secondary
#4BB44A
accent
#E34547
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #812182

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

Preview Lab → · Contrast checker → · Palette generator →

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