#812DC2#812DC2

#812DC2 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.217 H 305.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#812DC2
RGBrgb(129, 45, 194)
HSLhsl(274, 62%, 47%)
HSVhsv(274, 77%, 76%)
CMYKcmyk(33.5%, 76.8%, 0%, 23.9%)
CIE-LABlab(38.62, 60.61, -62.16)
CIE-LCHlch(38.62, 86.82, 314.27°)
OKLaboklab(49.83% 0.1249 -0.177)
OKLCHoklch(49.83% 0.217 305.2)
XYZxyz(19.7271, 10.4391, 52.0042)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DC2 #6EC22D
analogous
#372DC2 #812DC2 #C22DB8
triadic
#812DC2 #C2812D #2DC281
tetradic
#812DC2 #C2372D #6EC22D #2DB8C2
square
#812DC2 #C2372D #6EC22D #2DB8C2
split-complementary
#812DC2 #B8C22D #2DC237
monochromatic
#3F165F #602190 #812DC2 #9E55D7 #BB86E3

Accessibility & contrast

On white

6.80
#812DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#812DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DC2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DC2#FFFFFF#000000##FFFFFF
##812DC21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#755377
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812dc2;
/* rgb */ color: rgb(129, 45, 194);
/* oklch */ color: oklch(49.8% 0.217 305.2);
Tailwind
colors: {
  custom: {
    50: '#ab6fd5',
    500: '#812dc2',
    950: '#000000',
  },
}
SCSS
$custom: #812dc2;
$custom-light: #ab6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#812dc2",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 273.826,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49828,
    "c": 0.21664,
    "h": 305.2
  },
  "luminance": 0.10439
}

Semantic roles & 50–950 ramp

primary
#812DC2
secondary
#A0CD7E
accent
#E5428A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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