#812BA2#812BA2

#812BA2 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.188 H 314.8°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#812BA2
RGBrgb(129, 43, 162)
HSLhsl(283, 58%, 40%)
HSVhsv(283, 73%, 64%)
CMYKcmyk(20.4%, 73.5%, 0%, 36.5%)
CIE-LABlab(35.99, 54.47, -47.42)
CIE-LCHlch(35.99, 72.22, 318.95°)
OKLaboklab(47.23% 0.1326 -0.1337)
OKLCHoklch(47.23% 0.188 314.8)
XYZxyz(16.4376, 9.0041, 35.0475)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BA2 #4CA22B
analogous
#452BA2 #812BA2 #A22B88
triadic
#812BA2 #A2812B #2BA281
tetradic
#812BA2 #A2452B #4CA22B #2B88A2
square
#812BA2 #A2452B #4CA22B #2B88A2
split-complementary
#812BA2 #88A22B #2BA245
monochromatic
#341141 #5A1E72 #812BA2 #A53ECC #BB6FD9

Accessibility & contrast

On white

7.50
#812BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#812BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BA2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BA2#FFFFFF#000000##FFFFFF
##812BA21.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#26579F
Tritanopia (blue-blind)
#7E4464
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812ba2;
/* rgb */ color: rgb(129, 43, 162);
/* oklch */ color: oklch(47.2% 0.188 314.8);
Tailwind
colors: {
  custom: {
    50: '#a96dbe',
    500: '#812ba2',
    950: '#000000',
  },
}
SCSS
$custom: #812ba2;
$custom-light: #a96dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#812ba2",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 283.361,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47233,
    "c": 0.18828,
    "h": 314.8
  },
  "luminance": 0.09004
}

Semantic roles & 50–950 ramp

primary
#812BA2
secondary
#81C069
accent
#E14771
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #812BA2

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

Preview Lab → · Contrast checker → · Palette generator →

#812BA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva