#812CCD#812CCD

#812CCD is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.228 H 302.6°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#812CCD
RGBrgb(129, 44, 205)
HSLhsl(272, 65%, 49%)
HSVhsv(272, 79%, 80%)
CMYKcmyk(37.1%, 78.5%, 0%, 19.6%)
CIE-LABlab(39.37, 63.46, -67.35)
CIE-LCHlch(39.37, 92.54, 313.30°)
OKLaboklab(50.63% 0.1229 -0.1922)
OKLCHoklch(50.63% 0.228 302.6)
XYZxyz(20.9707, 10.8762, 58.7403)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CCD #78CD2C
analogous
#302CCD #812CCD #CD2CC9
triadic
#812CCD #CD812C #2CCD81
tetradic
#812CCD #CD302C #78CD2C #2CC9CD
square
#812CCD #CD302C #78CD2C #2CC9CD
split-complementary
#812CCD #C9CD2C #2CCD30
monochromatic
#421668 #61219B #812CCD #9F5BDC #BC8DE7

Accessibility & contrast

On white

6.61
#812CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#812CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812CCD
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CCD#FFFFFF#000000##FFFFFF
##812CCD1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#71577D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #812ccd;
/* rgb */ color: rgb(129, 44, 205);
/* oklch */ color: oklch(50.6% 0.228 302.6);
Tailwind
colors: {
  custom: {
    50: '#ac6fdd',
    500: '#812ccd',
    950: '#000000',
  },
}
SCSS
$custom: #812ccd;
$custom-light: #ac6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#812ccd",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 205
  },
  "hsl": {
    "h": 271.677,
    "s": 64.659,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50628,
    "c": 0.22818,
    "h": 302.6
  },
  "luminance": 0.10876
}

Semantic roles & 50–950 ramp

primary
#812CCD
secondary
#A8D184
accent
#E8408F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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