#812DB4#812DB4

#812DB4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.203 H 309.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#812DB4
RGBrgb(129, 45, 180)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 71%)
CMYKcmyk(28.3%, 75%, 0%, 29.4%)
CIE-LABlab(37.55, 57.51, -55.65)
CIE-LCHlch(37.55, 80.03, 315.94°)
OKLaboklab(48.74% 0.1278 -0.1579)
OKLCHoklch(48.74% 0.203 309)
XYZxyz(18.2282, 9.8395, 44.1101)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB4 #60B42D
analogous
#3D2DB4 #812DB4 #B42DA4
triadic
#812DB4 #B4812D #2DB481
tetradic
#812DB4 #B43D2D #60B42D #2DA4B4
square
#812DB4 #B43D2D #60B42D #2DA4B4
split-complementary
#812DB4 #A4B42D #2DB43D
monochromatic
#3B1552 #5E2183 #812DB4 #A04CD2 #BA7DDE

Accessibility & contrast

On white

7.08
#812DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812DB4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB4#FFFFFF#000000##FFFFFF
##812DB41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#794D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812db4;
/* rgb */ color: rgb(129, 45, 180);
/* oklch */ color: oklch(48.7% 0.203 309.0);
Tailwind
colors: {
  custom: {
    50: '#aa6fcb',
    500: '#812db4',
    950: '#000000',
  },
}
SCSS
$custom: #812db4;
$custom-light: #aa6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#812db4",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 277.333,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48744,
    "c": 0.20316,
    "h": 309
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#812DB4
secondary
#94C776
accent
#E34581
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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