#812DB9#812DB9

#812DB9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.208 H 307.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#812DB9
RGBrgb(129, 45, 185)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 76%, 73%)
CMYKcmyk(30.3%, 75.7%, 0%, 27.5%)
CIE-LABlab(37.93, 58.61, -58.00)
CIE-LCHlch(37.93, 82.46, 315.30°)
OKLaboklab(49.13% 0.1269 -0.1648)
OKLCHoklch(49.13% 0.208 307.6)
XYZxyz(18.7467, 10.0469, 46.8412)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB9 #65B92D
analogous
#3B2DB9 #812DB9 #B92DAB
triadic
#812DB9 #B9812D #2DB981
tetradic
#812DB9 #B93B2D #65B92D #2DABB9
square
#812DB9 #B93B2D #65B92D #2DABB9
split-complementary
#812DB9 #ABB92D #2DB93B
monochromatic
#3C1557 #5F2188 #812DB9 #9F4FD4 #BA80E0

Accessibility & contrast

On white

6.98
#812DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#812DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DB9
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB9#FFFFFF#000000##FFFFFF
##812DB91.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#784F71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812db9;
/* rgb */ color: rgb(129, 45, 185);
/* oklch */ color: oklch(49.1% 0.208 307.6);
Tailwind
colors: {
  custom: {
    50: '#ab6fcf',
    500: '#812db9',
    950: '#000000',
  },
}
SCSS
$custom: #812db9;
$custom-light: #ab6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#812db9",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 276,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49125,
    "c": 0.20796,
    "h": 307.6
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#812DB9
secondary
#99C979
accent
#E44484
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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