#812FB9#812FB9

#812FB9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.206 H 307.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#812FB9
RGBrgb(129, 47, 185)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 75%, 73%)
CMYKcmyk(30.3%, 74.6%, 0%, 27.5%)
CIE-LABlab(38.20, 57.81, -57.55)
CIE-LCHlch(38.20, 81.57, 315.13°)
OKLaboklab(49.32% 0.125 -0.1635)
OKLCHoklch(49.32% 0.206 307.4)
XYZxyz(18.8249, 10.2032, 46.8672)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FB9 #67B92F
analogous
#3C2FB9 #812FB9 #B92FAC
triadic
#812FB9 #B9812F #2FB981
tetradic
#812FB9 #B93C2F #67B92F #2FACB9
square
#812FB9 #B93C2F #67B92F #2FACB9
split-complementary
#812FB9 #ACB92F #2FB93C
monochromatic
#3D1657 #5F2388 #812FB9 #9F52D3 #BA83DF

Accessibility & contrast

On white

6.91
#812FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#812FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FB9
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FB9#FFFFFF#000000##FFFFFF
##812FB91.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#785072
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812fb9;
/* rgb */ color: rgb(129, 47, 185);
/* oklch */ color: oklch(49.3% 0.206 307.4);
Tailwind
colors: {
  custom: {
    50: '#ab70cf',
    500: '#812fb9',
    950: '#000000',
  },
}
SCSS
$custom: #812fb9;
$custom-light: #ab70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#812fb9",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 275.652,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49321,
    "c": 0.20582,
    "h": 307.4
  },
  "luminance": 0.10203
}

Semantic roles & 50–950 ramp

primary
#812FB9
secondary
#9BC97B
accent
#E34585
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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