#812EB8#812EB8

#812EB8 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.206 H 307.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#812EB8
RGBrgb(129, 46, 184)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 72%)
CMYKcmyk(29.9%, 75%, 0%, 27.8%)
CIE-LABlab(37.99, 57.99, -57.31)
CIE-LCHlch(37.99, 81.53, 315.34°)
OKLaboklab(49.15% 0.1262 -0.1628)
OKLCHoklch(49.15% 0.206 307.8)
XYZxyz(18.6802, 10.0821, 46.3001)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EB8 #65B82E
analogous
#3C2EB8 #812EB8 #B82EAA
triadic
#812EB8 #B8812E #2EB881
tetradic
#812EB8 #B83C2E #65B82E #2EAAB8
square
#812EB8 #B83C2E #65B82E #2EAAB8
split-complementary
#812EB8 #AAB82E #2EB83C
monochromatic
#3C1656 #5F2287 #812EB8 #9F50D3 #BA81DF

Accessibility & contrast

On white

6.96
#812EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #812EB8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EB8#FFFFFF#000000##FFFFFF
##812EB81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#784F71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812eb8;
/* rgb */ color: rgb(129, 46, 184);
/* oklch */ color: oklch(49.1% 0.206 307.8);
Tailwind
colors: {
  custom: {
    50: '#ab6fce',
    500: '#812eb8',
    950: '#000000',
  },
}
SCSS
$custom: #812eb8;
$custom-light: #ab6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#812eb8",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 276.087,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49145,
    "c": 0.20593,
    "h": 307.8
  },
  "luminance": 0.10082
}

Semantic roles & 50–950 ramp

primary
#812EB8
secondary
#99C879
accent
#E34584
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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