#812AC8#812AC8

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

Color values

HEX#812AC8
RGBrgb(129, 42, 200)
HSLhsl(273, 65%, 47%)
HSVhsv(273, 79%, 78%)
CMYKcmyk(35.5%, 79%, 0%, 21.6%)
CIE-LABlab(38.71, 63.06, -65.51)
CIE-LCHlch(38.71, 90.93, 313.91°)
OKLaboklab(50.04% 0.1258 -0.1868)
OKLCHoklch(50.04% 0.225 304)
XYZxyz(20.3041, 10.4932, 55.5881)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AC8 #71C82A
analogous
#322AC8 #812AC8 #C82AC0
triadic
#812AC8 #C8812A #2AC881
tetradic
#812AC8 #C8322A #71C82A #2AC0C8
square
#812AC8 #C8322A #71C82A #2AC0C8
split-complementary
#812AC8 #C0C82A #2AC832
monochromatic
#401563 #601F95 #812AC8 #9E54DB #BB87E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812AC8#FFFFFF#000000##FFFFFF
##812AC81.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)
#0059CC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#735479
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812ac8;
/* rgb */ color: rgb(129, 42, 200);
/* oklch */ color: oklch(50.0% 0.225 304.0);
Tailwind
colors: {
  custom: {
    50: '#ac6eda',
    500: '#812ac8',
    950: '#000000',
  },
}
SCSS
$custom: #812ac8;
$custom-light: #ac6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#812ac8",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 200
  },
  "hsl": {
    "h": 273.038,
    "s": 65.289,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50043,
    "c": 0.22525,
    "h": 304
  },
  "luminance": 0.10493
}

Semantic roles & 50–950 ramp

primary
#812AC8
secondary
#A3CF7F
accent
#E8408B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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