#812DB5#812DB5

#812DB5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.204 H 308.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#812DB5
RGBrgb(129, 45, 181)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 71%)
CMYKcmyk(28.7%, 75.1%, 0%, 29%)
CIE-LABlab(37.63, 57.73, -56.13)
CIE-LCHlch(37.63, 80.51, 315.81°)
OKLaboklab(48.82% 0.1277 -0.1593)
OKLCHoklch(48.82% 0.204 308.7)
XYZxyz(18.3304, 9.8804, 44.6486)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB5 #61B52D
analogous
#3D2DB5 #812DB5 #B52DA5
triadic
#812DB5 #B5812D #2DB581
tetradic
#812DB5 #B53D2D #61B52D #2DA5B5
square
#812DB5 #B53D2D #61B52D #2DA5B5
split-complementary
#812DB5 #A5B52D #2DB53D
monochromatic
#3B1553 #5E2184 #812DB5 #9F4DD3 #BA7EDF

Accessibility & contrast

On white

7.06
#812DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812DB5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB5#FFFFFF#000000##FFFFFF
##812DB51.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#794E6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812db5;
/* rgb */ color: rgb(129, 45, 181);
/* oklch */ color: oklch(48.8% 0.204 308.7);
Tailwind
colors: {
  custom: {
    50: '#aa6fcc',
    500: '#812db5',
    950: '#000000',
  },
}
SCSS
$custom: #812db5;
$custom-light: #aa6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#812db5",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 277.059,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48819,
    "c": 0.20412,
    "h": 308.7
  },
  "luminance": 0.0988
}

Semantic roles & 50–950 ramp

primary
#812DB5
secondary
#95C776
accent
#E34481
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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