#812ABA#812ABA

#812ABA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.212 H 307.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#812ABA
RGBrgb(129, 42, 186)
HSLhsl(276, 63%, 45%)
HSVhsv(276, 77%, 73%)
CMYKcmyk(30.6%, 77.4%, 0%, 27.1%)
CIE-LABlab(37.61, 59.97, -59.11)
CIE-LCHlch(37.61, 84.21, 315.41°)
OKLaboklab(48.92% 0.1293 -0.168)
OKLCHoklch(48.92% 0.212 307.6)
XYZxyz(18.7423, 9.8685, 47.3623)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812ABA #63BA2A
analogous
#392ABA #812ABA #BA2AAB
triadic
#812ABA #BA812A #2ABA81
tetradic
#812ABA #BA392A #63BA2A #2AABBA
square
#812ABA #BA392A #63BA2A #2AABBA
split-complementary
#812ABA #ABBA2A #2ABA39
monochromatic
#3C1356 #5E1F88 #812ABA #9F4BD6 #BA7DE2

Accessibility & contrast

On white

7.06
#812ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#812ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812ABA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812ABA#FFFFFF#000000##FFFFFF
##812ABA1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#774E71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812aba;
/* rgb */ color: rgb(129, 42, 186);
/* oklch */ color: oklch(48.9% 0.212 307.6);
Tailwind
colors: {
  custom: {
    50: '#ab6dd0',
    500: '#812aba',
    950: '#000000',
  },
}
SCSS
$custom: #812aba;
$custom-light: #ab6dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#812aba",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 276.25,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48923,
    "c": 0.212,
    "h": 307.6
  },
  "luminance": 0.09868
}

Semantic roles & 50–950 ramp

primary
#812ABA
secondary
#97CA76
accent
#E64283
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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