#812FC6#812FC6

#812FC6 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.219 H 304.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#812FC6
RGBrgb(129, 47, 198)
HSLhsl(273, 62%, 48%)
HSVhsv(273, 76%, 78%)
CMYKcmyk(34.8%, 76.3%, 0%, 22.4%)
CIE-LABlab(39.20, 60.74, -63.55)
CIE-LCHlch(39.20, 87.91, 313.70°)
OKLaboklab(50.34% 0.1223 -0.1811)
OKLCHoklch(50.34% 0.219 304)
XYZxyz(20.2605, 10.7774, 54.4280)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FC6 #74C62F
analogous
#352FC6 #812FC6 #C62FBF
triadic
#812FC6 #C6812F #2FC681
tetradic
#812FC6 #C6352F #74C62F #2FBFC6
square
#812FC6 #C6352F #74C62F #2FBFC6
split-complementary
#812FC6 #BFC62F #2FC635
monochromatic
#411863 #612395 #812FC6 #9F5AD8 #BB8CE4

Accessibility & contrast

On white

6.66
#812FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#812FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FC6
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FC6#FFFFFF#000000##FFFFFF
##812FC61.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#735679
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #812fc6;
/* rgb */ color: rgb(129, 47, 198);
/* oklch */ color: oklch(50.3% 0.219 304.0);
Tailwind
colors: {
  custom: {
    50: '#ac70d8',
    500: '#812fc6',
    950: '#000000',
  },
}
SCSS
$custom: #812fc6;
$custom-light: #ac70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#812fc6",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 198
  },
  "hsl": {
    "h": 272.583,
    "s": 61.633,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50336,
    "c": 0.21851,
    "h": 304
  },
  "luminance": 0.10777
}

Semantic roles & 50–950 ramp

primary
#812FC6
secondary
#A5CE83
accent
#E5438D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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