#812DC5#812DC5

#812DC5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.220 H 304.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#812DC5
RGBrgb(129, 45, 197)
HSLhsl(273, 63%, 47%)
HSVhsv(273, 77%, 77%)
CMYKcmyk(34.5%, 77.2%, 0%, 22.7%)
CIE-LABlab(38.86, 61.28, -63.53)
CIE-LCHlch(38.86, 88.27, 313.97°)
OKLaboklab(50.07% 0.1242 -0.181)
OKLCHoklch(50.07% 0.22 304.4)
XYZxyz(20.0674, 10.5752, 53.7965)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DC5 #71C52D
analogous
#352DC5 #812DC5 #C52DBD
triadic
#812DC5 #C5812D #2DC581
tetradic
#812DC5 #C5352D #71C52D #2DBDC5
square
#812DC5 #C5352D #71C52D #2DBDC5
split-complementary
#812DC5 #BDC52D #2DC535
monochromatic
#401661 #602293 #812DC5 #9E57D9 #BB88E4

Accessibility & contrast

On white

6.74
#812DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#812DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DC5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DC5#FFFFFF#000000##FFFFFF
##812DC51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#745478
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812dc5;
/* rgb */ color: rgb(129, 45, 197);
/* oklch */ color: oklch(50.1% 0.220 304.4);
Tailwind
colors: {
  custom: {
    50: '#ac6fd8',
    500: '#812dc5',
    950: '#000000',
  },
}
SCSS
$custom: #812dc5;
$custom-light: #ac6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#812dc5",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 197
  },
  "hsl": {
    "h": 273.158,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50067,
    "c": 0.21954,
    "h": 304.4
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#812DC5
secondary
#A3CE80
accent
#E6428B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #812DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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