#812DB1#812DB1

#812DB1 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.200 H 309.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#812DB1
RGBrgb(129, 45, 177)
HSLhsl(278, 59%, 44%)
HSVhsv(278, 75%, 69%)
CMYKcmyk(27.1%, 74.6%, 0%, 30.6%)
CIE-LABlab(37.33, 56.86, -54.23)
CIE-LCHlch(37.33, 78.57, 316.35°)
OKLaboklab(48.52% 0.1284 -0.1537)
OKLCHoklch(48.52% 0.2 309.9)
XYZxyz(17.9259, 9.7186, 42.5180)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB1 #5DB12D
analogous
#3F2DB1 #812DB1 #B12D9F
triadic
#812DB1 #B1812D #2DB181
tetradic
#812DB1 #B13F2D #5DB12D #2D9FB1
square
#812DB1 #B13F2D #5DB12D #2D9FB1
split-complementary
#812DB1 #9FB12D #2DB13F
monochromatic
#3A144F #5D2180 #812DB1 #A04AD1 #BA7BDD

Accessibility & contrast

On white

7.13
#812DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#812DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DB1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB1#FFFFFF#000000##FFFFFF
##812DB11.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0A59AE
Tritanopia (blue-blind)
#7A4C6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812db1;
/* rgb */ color: rgb(129, 45, 177);
/* oklch */ color: oklch(48.5% 0.200 309.9);
Tailwind
colors: {
  custom: {
    50: '#aa6ec9',
    500: '#812db1',
    950: '#000000',
  },
}
SCSS
$custom: #812db1;
$custom-light: #aa6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#812db1",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 278.182,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48519,
    "c": 0.20027,
    "h": 309.9
  },
  "luminance": 0.09718
}

Semantic roles & 50–950 ramp

primary
#812DB1
secondary
#92C674
accent
#E3457E
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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