#812CC4#812CC4

#812CC4 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.220 H 304.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#812CC4
RGBrgb(129, 44, 196)
HSLhsl(274, 63%, 47%)
HSVhsv(274, 78%, 77%)
CMYKcmyk(34.2%, 77.6%, 0%, 23.1%)
CIE-LABlab(38.65, 61.44, -63.29)
CIE-LCHlch(38.65, 88.20, 314.15°)
OKLaboklab(49.9% 0.1252 -0.1803)
OKLCHoklch(49.9% 0.22 304.8)
XYZxyz(19.9155, 10.4541, 53.1825)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CC4 #6FC42C
analogous
#352CC4 #812CC4 #C42CBB
triadic
#812CC4 #C4812C #2CC481
tetradic
#812CC4 #C4352C #6FC42C #2CBBC4
square
#812CC4 #C4352C #6FC42C #2CBBC4
split-complementary
#812CC4 #BBC42C #2CC435
monochromatic
#3F1660 #602192 #812CC4 #9E54D9 #BB86E4

Accessibility & contrast

On white

6.79
#812CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#812CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812CC4
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CC4#FFFFFF#000000##FFFFFF
##812CC41.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812cc4;
/* rgb */ color: rgb(129, 44, 196);
/* oklch */ color: oklch(49.9% 0.220 304.8);
Tailwind
colors: {
  custom: {
    50: '#ac6fd7',
    500: '#812cc4',
    950: '#000000',
  },
}
SCSS
$custom: #812cc4;
$custom-light: #ac6fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#812cc4",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 196
  },
  "hsl": {
    "h": 273.553,
    "s": 63.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49895,
    "c": 0.21955,
    "h": 304.8
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

primary
#812CC4
secondary
#A1CD7E
accent
#E6418A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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