#812DB3#812DB3

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

Color values

HEX#812DB3
RGBrgb(129, 45, 179)
HSLhsl(278, 60%, 44%)
HSVhsv(278, 75%, 70%)
CMYKcmyk(27.9%, 74.9%, 0%, 29.8%)
CIE-LABlab(37.48, 57.29, -55.18)
CIE-LCHlch(37.48, 79.54, 316.07°)
OKLaboklab(48.67% 0.128 -0.1565)
OKLCHoklch(48.67% 0.202 309.3)
XYZxyz(18.1267, 9.7989, 43.5756)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB3 #5FB32D
analogous
#3E2DB3 #812DB3 #B32DA2
triadic
#812DB3 #B3812D #2DB381
tetradic
#812DB3 #B33E2D #5FB32D #2DA2B3
square
#812DB3 #B33E2D #5FB32D #2DA2B3
split-complementary
#812DB3 #A2B32D #2DB33E
monochromatic
#3B1451 #5E2182 #812DB3 #A04BD2 #BA7CDE

Accessibility & contrast

On white

7.10
#812DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#812DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DB3
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB3#FFFFFF#000000##FFFFFF
##812DB31.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0259B0
Tritanopia (blue-blind)
#7A4D6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812db3;
/* rgb */ color: rgb(129, 45, 179);
/* oklch */ color: oklch(48.7% 0.202 309.3);
Tailwind
colors: {
  custom: {
    50: '#aa6fcb',
    500: '#812db3',
    950: '#000000',
  },
}
SCSS
$custom: #812db3;
$custom-light: #aa6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#812db3",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 277.612,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48669,
    "c": 0.20219,
    "h": 309.3
  },
  "luminance": 0.09799
}

Semantic roles & 50–950 ramp

primary
#812DB3
secondary
#94C775
accent
#E34580
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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