#812EC3#812EC3

#812EC3 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.217 H 304.9°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#812EC3
RGBrgb(129, 46, 195)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(33.8%, 76.4%, 0%, 23.5%)
CIE-LABlab(38.83, 60.45, -62.40)
CIE-LCHlch(38.83, 86.88, 314.09°)
OKLaboklab(50% 0.1238 -0.1777)
OKLCHoklch(50% 0.217 304.9)
XYZxyz(19.8783, 10.5614, 52.6105)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EC3 #70C32E
analogous
#372EC3 #812EC3 #C32EBB
triadic
#812EC3 #C3812E #2EC381
tetradic
#812EC3 #C3372E #70C32E #2EBBC3
square
#812EC3 #C3372E #70C32E #2EBBC3
split-complementary
#812EC3 #BBC32E #2EC337
monochromatic
#3F1760 #602291 #812EC3 #9E57D7 #BB88E3

Accessibility & contrast

On white

6.75
#812EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#812EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812EC3
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EC3#FFFFFF#000000##FFFFFF
##812EC31.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#745477
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812ec3;
/* rgb */ color: rgb(129, 46, 195);
/* oklch */ color: oklch(50.0% 0.217 304.9);
Tailwind
colors: {
  custom: {
    50: '#ab70d6',
    500: '#812ec3',
    950: '#000000',
  },
}
SCSS
$custom: #812ec3;
$custom-light: #ab70d6;
$custom-dark: #000000;
JSON
{
  "hex": "#812ec3",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 273.423,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50001,
    "c": 0.2166,
    "h": 304.9
  },
  "luminance": 0.10561
}

Semantic roles & 50–950 ramp

primary
#812EC3
secondary
#A2CD80
accent
#E5438B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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