#812DC0#812DC0

#812DC0 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.215 H 305.7°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#812DC0
RGBrgb(129, 45, 192)
HSLhsl(274, 62%, 46%)
HSVhsv(274, 77%, 75%)
CMYKcmyk(32.8%, 76.6%, 0%, 24.7%)
CIE-LABlab(38.46, 60.16, -61.25)
CIE-LCHlch(38.46, 85.85, 314.49°)
OKLaboklab(49.67% 0.1254 -0.1743)
OKLCHoklch(49.67% 0.215 305.7)
XYZxyz(19.5040, 10.3498, 50.8292)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DC0 #6CC02D
analogous
#382DC0 #812DC0 #C02DB6
triadic
#812DC0 #C0812D #2DC081
tetradic
#812DC0 #C0382D #6CC02D #2DB6C0
square
#812DC0 #C0382D #6CC02D #2DB6C0
split-complementary
#812DC0 #B6C02D #2DC038
monochromatic
#3E165D #60218E #812DC0 #9E53D7 #BA85E2

Accessibility & contrast

On white

6.84
#812DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#812DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DC0
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DC0#FFFFFF#000000##FFFFFF
##812DC01.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#755275
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812dc0;
/* rgb */ color: rgb(129, 45, 192);
/* oklch */ color: oklch(49.7% 0.215 305.7);
Tailwind
colors: {
  custom: {
    50: '#ab6fd4',
    500: '#812dc0',
    950: '#000000',
  },
}
SCSS
$custom: #812dc0;
$custom-light: #ab6fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#812dc0",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 274.286,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4967,
    "c": 0.21472,
    "h": 305.7
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#812DC0
secondary
#9FCC7D
accent
#E54388
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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