#812188#812188

#812188 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.177 H 325.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#812188
RGBrgb(129, 33, 136)
HSLhsl(296, 61%, 33%)
HSVhsv(296, 76%, 53%)
CMYKcmyk(5.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(32.99, 53.14, -36.35)
CIE-LCHlch(32.99, 64.39, 325.63°)
OKLaboklab(44.56% 0.1447 -0.1012)
OKLCHoklch(44.56% 0.177 325)
XYZxyz(14.0407, 7.5333, 24.0023)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812188 #288821
analogous
#4D2188 #812188 #88215B
triadic
#812188 #888121 #218881
tetradic
#812188 #884D21 #288821 #215B88
square
#812188 #884D21 #288821 #215B88
split-complementary
#812188 #5B8821 #21884D
monochromatic
#240925 #521557 #812188 #B02DB9 #CB4FD4

Accessibility & contrast

On white

8.38
#812188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#812188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812188
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812188#FFFFFF#000000##FFFFFF
##8121881.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#375286
Tritanopia (blue-blind)
#843353
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #812188;
/* rgb */ color: rgb(129, 33, 136);
/* oklch */ color: oklch(44.6% 0.177 325.0);
Tailwind
colors: {
  custom: {
    50: '#a967ab',
    500: '#812188',
    950: '#000000',
  },
}
SCSS
$custom: #812188;
$custom-light: #a967ab;
$custom-dark: #000000;
JSON
{
  "hex": "#812188",
  "rgb": {
    "r": 129,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 295.922,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44556,
    "c": 0.17655,
    "h": 325
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#812188
secondary
#54B84D
accent
#E4444F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #812188

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

Preview Lab → · Contrast checker → · Palette generator →

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