#812BA4#812BA4

#812BA4 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.190 H 314.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#812BA4
RGBrgb(129, 43, 164)
HSLhsl(283, 58%, 41%)
HSVhsv(283, 74%, 64%)
CMYKcmyk(21.3%, 73.8%, 0%, 35.7%)
CIE-LABlab(36.13, 54.88, -48.41)
CIE-LCHlch(36.13, 73.18, 318.59°)
OKLaboklab(47.38% 0.1323 -0.1366)
OKLCHoklch(47.38% 0.19 314.1)
XYZxyz(16.6168, 9.0758, 35.9912)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BA4 #4EA42B
analogous
#452BA4 #812BA4 #A42B8A
triadic
#812BA4 #A4812B #2BA481
tetradic
#812BA4 #A4452B #4EA42B #2B8AA4
square
#812BA4 #A4452B #4EA42B #2B8AA4
split-complementary
#812BA4 #8AA42B #2BA445
monochromatic
#351243 #5B1E74 #812BA4 #A43FCD #BB70D9

Accessibility & contrast

On white

7.46
#812BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#812BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BA4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BA4#FFFFFF#000000##FFFFFF
##812BA41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#2357A1
Tritanopia (blue-blind)
#7E4565
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #812ba4;
/* rgb */ color: rgb(129, 43, 164);
/* oklch */ color: oklch(47.4% 0.190 314.1);
Tailwind
colors: {
  custom: {
    50: '#aa6dc0',
    500: '#812ba4',
    950: '#000000',
  },
}
SCSS
$custom: #812ba4;
$custom-light: #aa6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#812ba4",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 282.645,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47375,
    "c": 0.19016,
    "h": 314.1
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#812BA4
secondary
#83C16A
accent
#E24673
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #812BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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