#812FCC#812FCC

#812FCC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.8% C 0.224 H 302.6°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#812FCC
RGBrgb(129, 47, 204)
HSLhsl(271, 63%, 49%)
HSVhsv(271, 77%, 80%)
CMYKcmyk(36.8%, 77%, 0%, 20%)
CIE-LABlab(39.68, 62.11, -66.26)
CIE-LCHlch(39.68, 90.82, 313.15°)
OKLaboklab(50.82% 0.1208 -0.1891)
OKLCHoklch(50.82% 0.224 302.6)
XYZxyz(20.9663, 11.0597, 58.1452)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FCC #7ACC2F
analogous
#332FCC #812FCC #CC2FC9
triadic
#812FCC #CC812F #2FCC81
tetradic
#812FCC #CC332F #7ACC2F #2FC9CC
square
#812FCC #CC332F #7ACC2F #2FC9CC
split-complementary
#812FCC #C9CC2F #2FCC33
monochromatic
#421869 #62249A #812FCC #9F5EDA #BD90E5

Accessibility & contrast

On white

6.54
#812FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#812FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FCC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FCC#FFFFFF#000000##FFFFFF
##812FCC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#71587D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #812fcc;
/* rgb */ color: rgb(129, 47, 204);
/* oklch */ color: oklch(50.8% 0.224 302.6);
Tailwind
colors: {
  custom: {
    50: '#ac71dd',
    500: '#812fcc',
    950: '#000000',
  },
}
SCSS
$custom: #812fcc;
$custom-light: #ac71dd;
$custom-dark: #000000;
JSON
{
  "hex": "#812fcc",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 204
  },
  "hsl": {
    "h": 271.338,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50819,
    "c": 0.22437,
    "h": 302.6
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#812FCC
secondary
#AAD087
accent
#E64290
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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