#812CB1#812CB1

#812CB1 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.201 H 310.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#812CB1
RGBrgb(129, 44, 177)
HSLhsl(278, 60%, 43%)
HSVhsv(278, 75%, 69%)
CMYKcmyk(27.1%, 75.1%, 0%, 30.6%)
CIE-LABlab(37.19, 57.25, -54.46)
CIE-LCHlch(37.19, 79.01, 316.43°)
OKLaboklab(48.42% 0.1293 -0.1544)
OKLCHoklch(48.42% 0.201 310)
XYZxyz(17.8882, 9.6432, 42.5054)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CB1 #5CB12C
analogous
#3E2CB1 #812CB1 #B12C9E
triadic
#812CB1 #B1812C #2CB181
tetradic
#812CB1 #B13E2C #5CB12C #2C9EB1
square
#812CB1 #B13E2C #5CB12C #2C9EB1
split-complementary
#812CB1 #9EB12C #2CB13E
monochromatic
#3A144F #5D2080 #812CB1 #A049D2 #BA7ADE

Accessibility & contrast

On white

7.17
#812CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812CB1
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CB1#FFFFFF#000000##FFFFFF
##812CB11.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0759AE
Tritanopia (blue-blind)
#7A4B6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812cb1;
/* rgb */ color: rgb(129, 44, 177);
/* oklch */ color: oklch(48.4% 0.201 310.0);
Tailwind
colors: {
  custom: {
    50: '#aa6ec9',
    500: '#812cb1',
    950: '#000000',
  },
}
SCSS
$custom: #812cb1;
$custom-light: #aa6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#812cb1",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 278.346,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48421,
    "c": 0.20137,
    "h": 310
  },
  "luminance": 0.09643
}

Semantic roles & 50–950 ramp

primary
#812CB1
secondary
#91C673
accent
#E3447E
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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