#812AB3#812AB3

#812AB3 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.205 H 309.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#812AB3
RGBrgb(129, 42, 179)
HSLhsl(278, 62%, 43%)
HSVhsv(278, 77%, 70%)
CMYKcmyk(27.9%, 76.5%, 0%, 29.8%)
CIE-LABlab(37.07, 58.45, -55.84)
CIE-LCHlch(37.07, 80.83, 316.31°)
OKLaboklab(48.38% 0.1308 -0.1584)
OKLCHoklch(48.38% 0.205 309.5)
XYZxyz(18.0163, 9.5781, 43.5388)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AB3 #5CB32A
analogous
#3C2AB3 #812AB3 #B32AA0
triadic
#812AB3 #B3812A #2AB381
tetradic
#812AB3 #B33C2A #5CB32A #2AA0B3
square
#812AB3 #B33C2A #5CB32A #2AA0B3
split-complementary
#812AB3 #A0B32A #2AB33C
monochromatic
#3A1350 #5D1E81 #812AB3 #A046D4 #BA78DF

Accessibility & contrast

On white

7.20
#812AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#812AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AB3
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AB3#FFFFFF#000000##FFFFFF
##812AB31.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#7A4B6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812ab3;
/* rgb */ color: rgb(129, 42, 179);
/* oklch */ color: oklch(48.4% 0.205 309.5);
Tailwind
colors: {
  custom: {
    50: '#aa6dcb',
    500: '#812ab3',
    950: '#000000',
  },
}
SCSS
$custom: #812ab3;
$custom-light: #aa6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#812ab3",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 278.102,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48383,
    "c": 0.2054,
    "h": 309.5
  },
  "luminance": 0.09578
}

Semantic roles & 50–950 ramp

primary
#812AB3
secondary
#91C772
accent
#E5437E
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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