#812DB8#812DB8

#812DB8 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.207 H 307.9°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#812DB8
RGBrgb(129, 45, 184)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 76%, 72%)
CMYKcmyk(29.9%, 75.5%, 0%, 27.8%)
CIE-LABlab(37.85, 58.39, -57.54)
CIE-LCHlch(37.85, 81.97, 315.42°)
OKLaboklab(49.05% 0.1271 -0.1634)
OKLCHoklch(49.05% 0.207 307.9)
XYZxyz(18.6416, 10.0049, 46.2872)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DB8 #64B82D
analogous
#3B2DB8 #812DB8 #B82DAA
triadic
#812DB8 #B8812D #2DB881
tetradic
#812DB8 #B83B2D #64B82D #2DAAB8
square
#812DB8 #B83B2D #64B82D #2DAAB8
split-complementary
#812DB8 #AAB82D #2DB83B
monochromatic
#3C1556 #5F2187 #812DB8 #9F4ED4 #BA80E0

Accessibility & contrast

On white

7.00
#812DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#812DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DB8
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DB8#FFFFFF#000000##FFFFFF
##812DB81.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.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: #812db8;
/* rgb */ color: rgb(129, 45, 184);
/* oklch */ color: oklch(49.0% 0.207 307.9);
Tailwind
colors: {
  custom: {
    50: '#ab6fce',
    500: '#812db8',
    950: '#000000',
  },
}
SCSS
$custom: #812db8;
$custom-light: #ab6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#812db8",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 276.259,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49048,
    "c": 0.207,
    "h": 307.9
  },
  "luminance": 0.10005
}

Semantic roles & 50–950 ramp

primary
#812DB8
secondary
#98C978
accent
#E44483
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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