#812AB5#812AB5

#812AB5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.207 H 309.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#812AB5
RGBrgb(129, 42, 181)
HSLhsl(278, 62%, 44%)
HSVhsv(278, 77%, 71%)
CMYKcmyk(28.7%, 76.8%, 0%, 29%)
CIE-LABlab(37.22, 58.88, -56.78)
CIE-LCHlch(37.22, 81.80, 316.04°)
OKLaboklab(48.54% 0.1303 -0.1612)
OKLCHoklch(48.54% 0.207 309)
XYZxyz(18.2200, 9.6596, 44.6118)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AB5 #5EB52A
analogous
#3B2AB5 #812AB5 #B52AA3
triadic
#812AB5 #B5812A #2AB581
tetradic
#812AB5 #B53B2A #5EB52A #2AA3B5
square
#812AB5 #B53B2A #5EB52A #2AA3B5
split-complementary
#812AB5 #A3B52A #2AB53B
monochromatic
#3A1352 #5E1E83 #812AB5 #A048D4 #BA79E0

Accessibility & contrast

On white

7.16
#812AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#812AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AB5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AB5#FFFFFF#000000##FFFFFF
##812AB51.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#794C6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812ab5;
/* rgb */ color: rgb(129, 42, 181);
/* oklch */ color: oklch(48.5% 0.207 309.0);
Tailwind
colors: {
  custom: {
    50: '#ab6dcc',
    500: '#812ab5',
    950: '#000000',
  },
}
SCSS
$custom: #812ab5;
$custom-light: #ab6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#812ab5",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 277.554,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48536,
    "c": 0.20729,
    "h": 309
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#812AB5
secondary
#93C873
accent
#E5427F
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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