#812DC8#812DC8

#812DC8 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.222 H 303.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#812DC8
RGBrgb(129, 45, 200)
HSLhsl(273, 63%, 48%)
HSVhsv(273, 78%, 78%)
CMYKcmyk(35.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(39.09, 61.96, -64.89)
CIE-LCHlch(39.09, 89.72, 313.68°)
OKLaboklab(50.31% 0.1234 -0.185)
OKLCHoklch(50.31% 0.222 303.7)
XYZxyz(20.4145, 10.7141, 55.6249)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DC8 #74C82D
analogous
#332DC8 #812DC8 #C82DC1
triadic
#812DC8 #C8812D #2DC881
tetradic
#812DC8 #C8332D #74C82D #2DC1C8
square
#812DC8 #C8332D #74C82D #2DC1C8
split-complementary
#812DC8 #C1C82D #2DC833
monochromatic
#411764 #612296 #812DC8 #9F59DA #BB8BE5

Accessibility & contrast

On white

6.68
#812DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#812DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DC8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DC8#FFFFFF#000000##FFFFFF
##812DC81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#73567A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #812dc8;
/* rgb */ color: rgb(129, 45, 200);
/* oklch */ color: oklch(50.3% 0.222 303.7);
Tailwind
colors: {
  custom: {
    50: '#ac70da',
    500: '#812dc8',
    950: '#000000',
  },
}
SCSS
$custom: #812dc8;
$custom-light: #ac70da;
$custom-dark: #000000;
JSON
{
  "hex": "#812dc8",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 272.516,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50309,
    "c": 0.22243,
    "h": 303.7
  },
  "luminance": 0.10714
}

Semantic roles & 50–950 ramp

primary
#812DC8
secondary
#A5CF82
accent
#E6418D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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