#812DBC#812DBC

#812DBC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.211 H 306.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#812DBC
RGBrgb(129, 45, 188)
HSLhsl(275, 61%, 46%)
HSVhsv(275, 76%, 74%)
CMYKcmyk(31.4%, 76.1%, 0%, 26.3%)
CIE-LABlab(38.15, 59.27, -59.40)
CIE-LCHlch(38.15, 83.91, 314.94°)
OKLaboklab(49.36% 0.1262 -0.1689)
OKLCHoklch(49.36% 0.211 306.8)
XYZxyz(19.0668, 10.1750, 48.5267)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DBC #68BC2D
analogous
#3A2DBC #812DBC #BC2DAF
triadic
#812DBC #BC812D #2DBC81
tetradic
#812DBC #BC3A2D #68BC2D #2DAFBC
square
#812DBC #BC3A2D #68BC2D #2DAFBC
split-complementary
#812DBC #AFBC2D #2DBC3A
monochromatic
#3D1559 #5F218B #812DBC #9F51D5 #BA82E1

Accessibility & contrast

On white

6.92
#812DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#812DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DBC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DBC#FFFFFF#000000##FFFFFF
##812DBC1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#775173
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812dbc;
/* rgb */ color: rgb(129, 45, 188);
/* oklch */ color: oklch(49.4% 0.211 306.8);
Tailwind
colors: {
  custom: {
    50: '#ab6fd1',
    500: '#812dbc',
    950: '#000000',
  },
}
SCSS
$custom: #812dbc;
$custom-light: #ab6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#812dbc",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 275.245,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49357,
    "c": 0.21086,
    "h": 306.8
  },
  "luminance": 0.10175
}

Semantic roles & 50–950 ramp

primary
#812DBC
secondary
#9BCA7B
accent
#E44386
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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