#812FC9#812FC9

#812FC9 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.221 H 303.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#812FC9
RGBrgb(129, 47, 201)
HSLhsl(272, 62%, 49%)
HSVhsv(272, 77%, 79%)
CMYKcmyk(35.8%, 76.6%, 0%, 21.2%)
CIE-LABlab(39.44, 61.42, -64.91)
CIE-LCHlch(39.44, 89.36, 313.42°)
OKLaboklab(50.58% 0.1216 -0.1851)
OKLCHoklch(50.58% 0.221 303.3)
XYZxyz(20.6099, 10.9172, 56.2685)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FC9 #77C92F
analogous
#342FC9 #812FC9 #C92FC4
triadic
#812FC9 #C9812F #2FC981
tetradic
#812FC9 #C9342F #77C92F #2FC4C9
square
#812FC9 #C9342F #77C92F #2FC4C9
split-complementary
#812FC9 #C4C92F #2FC934
monochromatic
#411866 #612397 #812FC9 #9F5CD9 #BC8EE5

Accessibility & contrast

On white

6.60
#812FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#812FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FC9
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FC9#FFFFFF#000000##FFFFFF
##812FC91.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#72577B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #812fc9;
/* rgb */ color: rgb(129, 47, 201);
/* oklch */ color: oklch(50.6% 0.221 303.3);
Tailwind
colors: {
  custom: {
    50: '#ac71da',
    500: '#812fc9',
    950: '#000000',
  },
}
SCSS
$custom: #812fc9;
$custom-light: #ac71da;
$custom-dark: #000000;
JSON
{
  "hex": "#812fc9",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 271.948,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50576,
    "c": 0.22144,
    "h": 303.3
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#812FC9
secondary
#A7CF85
accent
#E5438F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #812FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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