#812CB6#812CB6

#812CB6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.206 H 308.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#812CB6
RGBrgb(129, 44, 182)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(29.1%, 75.8%, 0%, 28.6%)
CIE-LABlab(37.56, 58.34, -56.82)
CIE-LCHlch(37.56, 81.43, 315.76°)
OKLaboklab(48.8% 0.1284 -0.1613)
OKLCHoklch(48.8% 0.206 308.5)
XYZxyz(18.3957, 9.8462, 45.1783)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CB6 #61B62C
analogous
#3C2CB6 #812CB6 #B62CA6
triadic
#812CB6 #B6812C #2CB681
tetradic
#812CB6 #B63C2C #61B62C #2CA6B6
square
#812CB6 #B63C2C #61B62C #2CA6B6
split-complementary
#812CB6 #A6B62C #2CB63C
monochromatic
#3B1453 #5E2085 #812CB6 #9F4CD4 #BA7DE0

Accessibility & contrast

On white

7.07
#812CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#812CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CB6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CB6#FFFFFF#000000##FFFFFF
##812CB61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812cb6;
/* rgb */ color: rgb(129, 44, 182);
/* oklch */ color: oklch(48.8% 0.206 308.5);
Tailwind
colors: {
  custom: {
    50: '#ab6ecd',
    500: '#812cb6',
    950: '#000000',
  },
}
SCSS
$custom: #812cb6;
$custom-light: #ab6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#812cb6",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 276.957,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48799,
    "c": 0.20614,
    "h": 308.5
  },
  "luminance": 0.09846
}

Semantic roles & 50–950 ramp

primary
#812CB6
secondary
#95C876
accent
#E44481
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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