#812CC5#812CC5

#812CC5 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 50.0% C 0.221 H 304.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#812CC5
RGBrgb(129, 44, 197)
HSLhsl(273, 63%, 47%)
HSVhsv(273, 78%, 77%)
CMYKcmyk(34.5%, 77.7%, 0%, 22.7%)
CIE-LABlab(38.72, 61.66, -63.75)
CIE-LCHlch(38.72, 88.69, 314.05°)
OKLaboklab(49.98% 0.125 -0.1817)
OKLCHoklch(49.98% 0.221 304.5)
XYZxyz(20.0297, 10.4998, 53.7840)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CC5 #70C52C
analogous
#342CC5 #812CC5 #C52CBD
triadic
#812CC5 #C5812C #2CC581
tetradic
#812CC5 #C5342C #70C52C #2CBDC5
square
#812CC5 #C5342C #70C52C #2CBDC5
split-complementary
#812CC5 #BDC52C #2CC534
monochromatic
#3F1661 #602193 #812CC5 #9E55D9 #BB87E4

Accessibility & contrast

On white

6.77
#812CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#812CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812CC5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CC5#FFFFFF#000000##FFFFFF
##812CC51.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812cc5;
/* rgb */ color: rgb(129, 44, 197);
/* oklch */ color: oklch(50.0% 0.221 304.5);
Tailwind
colors: {
  custom: {
    50: '#ac6fd8',
    500: '#812cc5',
    950: '#000000',
  },
}
SCSS
$custom: #812cc5;
$custom-light: #ac6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#812cc5",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 197
  },
  "hsl": {
    "h": 273.333,
    "s": 63.485,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49976,
    "c": 0.22051,
    "h": 304.5
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

primary
#812CC5
secondary
#A2CE7F
accent
#E7418B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #812CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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