#812AB6#812AB6

#812AB6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.208 H 308.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#812AB6
RGBrgb(129, 42, 182)
HSLhsl(277, 63%, 44%)
HSVhsv(277, 77%, 71%)
CMYKcmyk(29.1%, 76.9%, 0%, 28.6%)
CIE-LABlab(37.30, 59.10, -57.25)
CIE-LCHlch(37.30, 82.28, 315.91°)
OKLaboklab(48.61% 0.1301 -0.1625)
OKLCHoklch(48.61% 0.208 308.7)
XYZxyz(18.3230, 9.7008, 45.1541)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AB6 #5FB62A
analogous
#3B2AB6 #812AB6 #B62AA5
triadic
#812AB6 #B6812A #2AB681
tetradic
#812AB6 #B63B2A #5FB62A #2AA5B6
square
#812AB6 #B63B2A #5FB62A #2AA5B6
split-complementary
#812AB6 #A5B62A #2AB63B
monochromatic
#3B1353 #5E1F84 #812AB6 #A048D5 #BA7AE0

Accessibility & contrast

On white

7.14
#812AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#812AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AB6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AB6#FFFFFF#000000##FFFFFF
##812AB61.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#794D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812ab6;
/* rgb */ color: rgb(129, 42, 182);
/* oklch */ color: oklch(48.6% 0.208 308.7);
Tailwind
colors: {
  custom: {
    50: '#ab6dcd',
    500: '#812ab6',
    950: '#000000',
  },
}
SCSS
$custom: #812ab6;
$custom-light: #ab6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#812ab6",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 277.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48613,
    "c": 0.20822,
    "h": 308.7
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#812AB6
secondary
#94C873
accent
#E64280
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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