#812DC3#812DC3

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

Color values

HEX#812DC3
RGBrgb(129, 45, 195)
HSLhsl(274, 63%, 47%)
HSVhsv(274, 77%, 76%)
CMYKcmyk(33.8%, 76.9%, 0%, 23.5%)
CIE-LABlab(38.70, 60.83, -62.62)
CIE-LCHlch(38.70, 87.30, 314.17°)
OKLaboklab(49.91% 0.1247 -0.1784)
OKLCHoklch(49.91% 0.218 305)
XYZxyz(19.8397, 10.4841, 52.5976)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DC3 #6FC32D
analogous
#362DC3 #812DC3 #C32DBA
triadic
#812DC3 #C3812D #2DC381
tetradic
#812DC3 #C3362D #6FC32D #2DBAC3
square
#812DC3 #C3362D #6FC32D #2DBAC3
split-complementary
#812DC3 #BAC32D #2DC336
monochromatic
#3F1660 #602291 #812DC3 #9E55D8 #BB87E3

Accessibility & contrast

On white

6.78
#812DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #812DC3
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DC3#FFFFFF#000000##FFFFFF
##812DC31.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#745477
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812dc3;
/* rgb */ color: rgb(129, 45, 195);
/* oklch */ color: oklch(49.9% 0.218 305.0);
Tailwind
colors: {
  custom: {
    50: '#ac6fd6',
    500: '#812dc3',
    950: '#000000',
  },
}
SCSS
$custom: #812dc3;
$custom-light: #ac6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#812dc3",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 195
  },
  "hsl": {
    "h": 273.6,
    "s": 62.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49907,
    "c": 0.21761,
    "h": 305
  },
  "luminance": 0.10484
}

Semantic roles & 50–950 ramp

primary
#812DC3
secondary
#A1CD7F
accent
#E6428A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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