#812DB6#812DB6

#812DB6 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.205 H 308.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#812DB6
RGBrgb(129, 45, 182)
HSLhsl(277, 60%, 45%)
HSVhsv(277, 75%, 71%)
CMYKcmyk(29.1%, 75.3%, 0%, 28.6%)
CIE-LABlab(37.70, 57.95, -56.60)
CIE-LCHlch(37.70, 81.00, 315.68°)
OKLaboklab(48.9% 0.1275 -0.1607)
OKLCHoklch(48.9% 0.205 308.4)
XYZxyz(18.4334, 9.9216, 45.1909)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB6 #62B62D
analogous
#3C2DB6 #812DB6 #B62DA7
triadic
#812DB6 #B6812D #2DB681
tetradic
#812DB6 #B63C2D #62B62D #2DA7B6
square
#812DB6 #B63C2D #62B62D #2DA7B6
split-complementary
#812DB6 #A7B62D #2DB63C
monochromatic
#3B1554 #5E2185 #812DB6 #9F4DD3 #BA7EDF

Accessibility & contrast

On white

7.04
#812DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#812DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DB6
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB6#FFFFFF#000000##FFFFFF
##812DB61.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#794E70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812db6;
/* rgb */ color: rgb(129, 45, 182);
/* oklch */ color: oklch(48.9% 0.205 308.4);
Tailwind
colors: {
  custom: {
    50: '#ab6fcd',
    500: '#812db6',
    950: '#000000',
  },
}
SCSS
$custom: #812db6;
$custom-light: #ab6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#812db6",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 276.788,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48895,
    "c": 0.20508,
    "h": 308.4
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#812DB6
secondary
#96C877
accent
#E34482
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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