#812BB9#812BB9

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

Color values

HEX#812BB9
RGBrgb(129, 43, 185)
HSLhsl(276, 62%, 45%)
HSVhsv(276, 77%, 73%)
CMYKcmyk(30.3%, 76.8%, 0%, 27.5%)
CIE-LABlab(37.66, 59.38, -58.44)
CIE-LCHlch(37.66, 83.31, 315.46°)
OKLaboklab(48.94% 0.1286 -0.1661)
OKLCHoklch(48.94% 0.21 307.8)
XYZxyz(18.6722, 9.8979, 46.8164)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB9 #63B92B
analogous
#3A2BB9 #812BB9 #B92BAA
triadic
#812BB9 #B9812B #2BB981
tetradic
#812BB9 #B93A2B #63B92B #2BAAB9
square
#812BB9 #B93A2B #63B92B #2BAAB9
split-complementary
#812BB9 #AAB92B #2BB93A
monochromatic
#3C1456 #5E1F87 #812BB9 #9F4CD5 #BA7EE1

Accessibility & contrast

On white

7.05
#812BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812BB9
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BB9#FFFFFF#000000##FFFFFF
##812BB91.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#784E71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812bb9;
/* rgb */ color: rgb(129, 43, 185);
/* oklch */ color: oklch(48.9% 0.210 307.8);
Tailwind
colors: {
  custom: {
    50: '#ab6ecf',
    500: '#812bb9',
    950: '#000000',
  },
}
SCSS
$custom: #812bb9;
$custom-light: #ab6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb9",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 276.338,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48936,
    "c": 0.21005,
    "h": 307.8
  },
  "luminance": 0.09898
}

Semantic roles & 50–950 ramp

primary
#812BB9
secondary
#97C976
accent
#E54283
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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