#812CB5#812CB5

#812CB5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.205 H 308.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#812CB5
RGBrgb(129, 44, 181)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(28.7%, 75.7%, 0%, 29%)
CIE-LABlab(37.49, 58.12, -56.35)
CIE-LCHlch(37.49, 80.95, 315.89°)
OKLaboklab(48.72% 0.1286 -0.1599)
OKLCHoklch(48.72% 0.205 308.8)
XYZxyz(18.2927, 9.8050, 44.6360)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CB5 #60B52C
analogous
#3C2CB5 #812CB5 #B52CA5
triadic
#812CB5 #B5812C #2CB581
tetradic
#812CB5 #B53C2C #60B52C #2CA5B5
square
#812CB5 #B53C2C #60B52C #2CA5B5
split-complementary
#812CB5 #A5B52C #2CB53C
monochromatic
#3B1453 #5E2084 #812CB5 #A04BD3 #BA7CDF

Accessibility & contrast

On white

7.09
#812CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#812CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CB5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CB5#FFFFFF#000000##FFFFFF
##812CB51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812cb5;
/* rgb */ color: rgb(129, 44, 181);
/* oklch */ color: oklch(48.7% 0.205 308.8);
Tailwind
colors: {
  custom: {
    50: '#ab6ecc',
    500: '#812cb5',
    950: '#000000',
  },
}
SCSS
$custom: #812cb5;
$custom-light: #ab6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#812cb5",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 277.226,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48723,
    "c": 0.20519,
    "h": 308.8
  },
  "luminance": 0.09805
}

Semantic roles & 50–950 ramp

primary
#812CB5
secondary
#94C875
accent
#E44481
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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