#812AB7#812AB7

#812AB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.209 H 308.4°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#812AB7
RGBrgb(129, 42, 183)
HSLhsl(277, 63%, 44%)
HSVhsv(277, 77%, 72%)
CMYKcmyk(29.5%, 77%, 0%, 28.2%)
CIE-LABlab(37.38, 59.31, -57.72)
CIE-LCHlch(37.38, 82.76, 315.78°)
OKLaboklab(48.69% 0.1299 -0.1639)
OKLCHoklch(48.69% 0.209 308.4)
XYZxyz(18.4267, 9.7423, 45.7003)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AB7 #60B72A
analogous
#3A2AB7 #812AB7 #B72AA7
triadic
#812AB7 #B7812A #2AB781
tetradic
#812AB7 #B73A2A #60B72A #2AA7B7
square
#812AB7 #B73A2A #60B72A #2AA7B7
split-complementary
#812AB7 #A7B72A #2AB73A
monochromatic
#3B1353 #5E1F85 #812AB7 #A049D5 #BA7BE1

Accessibility & contrast

On white

7.12
#812AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#812AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AB7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AB7#FFFFFF#000000##FFFFFF
##812AB71.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#784D70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812ab7;
/* rgb */ color: rgb(129, 42, 183);
/* oklch */ color: oklch(48.7% 0.209 308.4);
Tailwind
colors: {
  custom: {
    50: '#ab6dcd',
    500: '#812ab7',
    950: '#000000',
  },
}
SCSS
$custom: #812ab7;
$custom-light: #ab6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#812ab7",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 277.021,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4869,
    "c": 0.20917,
    "h": 308.4
  },
  "luminance": 0.09742
}

Semantic roles & 50–950 ramp

primary
#812AB7
secondary
#94C974
accent
#E64281
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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