#812EB9#812EB9

#812EB9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.207 H 307.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#812EB9
RGBrgb(129, 46, 185)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 73%)
CMYKcmyk(30.3%, 75.1%, 0%, 27.5%)
CIE-LABlab(38.06, 58.21, -57.78)
CIE-LCHlch(38.06, 82.02, 315.21°)
OKLaboklab(49.22% 0.126 -0.1641)
OKLCHoklch(49.22% 0.207 307.5)
XYZxyz(18.7854, 10.1242, 46.8541)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EB9 #66B92E
analogous
#3B2EB9 #812EB9 #B92EAC
triadic
#812EB9 #B9812E #2EB981
tetradic
#812EB9 #B93B2E #66B92E #2EACB9
square
#812EB9 #B93B2E #66B92E #2EACB9
split-complementary
#812EB9 #ACB92E #2EB93B
monochromatic
#3D1657 #5F2288 #812EB9 #9F51D4 #BA82E0

Accessibility & contrast

On white

6.94
#812EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#812EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812EB9
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EB9#FFFFFF#000000##FFFFFF
##812EB91.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812eb9;
/* rgb */ color: rgb(129, 46, 185);
/* oklch */ color: oklch(49.2% 0.207 307.5);
Tailwind
colors: {
  custom: {
    50: '#ab6fcf',
    500: '#812eb9',
    950: '#000000',
  },
}
SCSS
$custom: #812eb9;
$custom-light: #ab6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#812eb9",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 275.827,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49222,
    "c": 0.2069,
    "h": 307.5
  },
  "luminance": 0.10124
}

Semantic roles & 50–950 ramp

primary
#812EB9
secondary
#9AC97A
accent
#E34484
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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