#812AC5#812AC5

#812AC5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.222 H 304.7°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#812AC5
RGBrgb(129, 42, 197)
HSLhsl(274, 65%, 47%)
HSVhsv(274, 79%, 77%)
CMYKcmyk(34.5%, 78.7%, 0%, 22.7%)
CIE-LABlab(38.47, 62.39, -64.16)
CIE-LCHlch(38.47, 89.49, 314.20°)
OKLaboklab(49.8% 0.1266 -0.1829)
OKLCHoklch(49.8% 0.222 304.7)
XYZxyz(19.9570, 10.3544, 53.7597)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AC5 #6EC52A
analogous
#332AC5 #812AC5 #C52ABC
triadic
#812AC5 #C5812A #2AC581
tetradic
#812AC5 #C5332A #6EC52A #2ABCC5
square
#812AC5 #C5332A #6EC52A #2ABCC5
split-complementary
#812AC5 #BCC52A #2AC533
monochromatic
#3F1460 #601F93 #812AC5 #9E52DA #BB85E5

Accessibility & contrast

On white

6.84
#812AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#812AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812AC5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AC5#FFFFFF#000000##FFFFFF
##812AC51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812ac5;
/* rgb */ color: rgb(129, 42, 197);
/* oklch */ color: oklch(49.8% 0.222 304.7);
Tailwind
colors: {
  custom: {
    50: '#ac6ed8',
    500: '#812ac5',
    950: '#000000',
  },
}
SCSS
$custom: #812ac5;
$custom-light: #ac6ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#812ac5",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 273.677,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49798,
    "c": 0.2224,
    "h": 304.7
  },
  "luminance": 0.10354
}

Semantic roles & 50–950 ramp

primary
#812AC5
secondary
#A0CE7D
accent
#E8408A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #812AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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