#812ABC#812ABC

#812ABC is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.214 H 307.0°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#812ABC
RGBrgb(129, 42, 188)
HSLhsl(276, 63%, 45%)
HSVhsv(276, 78%, 74%)
CMYKcmyk(31.4%, 77.7%, 0%, 26.3%)
CIE-LABlab(37.76, 60.41, -60.04)
CIE-LCHlch(37.76, 85.17, 315.17°)
OKLaboklab(49.08% 0.1288 -0.1708)
OKLCHoklch(49.08% 0.214 307)
XYZxyz(18.9564, 9.9541, 48.4899)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812ABC #65BC2A
analogous
#382ABC #812ABC #BC2AAE
triadic
#812ABC #BC812A #2ABC81
tetradic
#812ABC #BC382A #65BC2A #2AAEBC
square
#812ABC #BC382A #65BC2A #2AAEBC
split-complementary
#812ABC #AEBC2A #2ABC38
monochromatic
#3C1458 #5F1F8A #812ABC #9F4CD7 #BA7EE2

Accessibility & contrast

On white

7.02
#812ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#812ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812ABC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812ABC#FFFFFF#000000##FFFFFF
##812ABC1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#774F73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812abc;
/* rgb */ color: rgb(129, 42, 188);
/* oklch */ color: oklch(49.1% 0.214 307.0);
Tailwind
colors: {
  custom: {
    50: '#ab6ed1',
    500: '#812abc',
    950: '#000000',
  },
}
SCSS
$custom: #812abc;
$custom-light: #ab6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#812abc",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 275.753,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4908,
    "c": 0.21389,
    "h": 307
  },
  "luminance": 0.09954
}

Semantic roles & 50–950 ramp

primary
#812ABC
secondary
#99CB77
accent
#E74184
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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