#812DBE#812DBE

#812DBE is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.213 H 306.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#812DBE
RGBrgb(129, 45, 190)
HSLhsl(275, 62%, 46%)
HSVhsv(275, 76%, 75%)
CMYKcmyk(32.1%, 76.3%, 0%, 25.5%)
CIE-LABlab(38.31, 59.72, -60.33)
CIE-LCHlch(38.31, 84.88, 314.71°)
OKLaboklab(49.51% 0.1258 -0.1716)
OKLCHoklch(49.51% 0.213 306.2)
XYZxyz(19.2839, 10.2618, 49.6700)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DBE #6ABE2D
analogous
#392DBE #812DBE #BE2DB2
triadic
#812DBE #BE812D #2DBE81
tetradic
#812DBE #BE392D #6ABE2D #2DB2BE
square
#812DBE #BE392D #6ABE2D #2DB2BE
split-complementary
#812DBE #B2BE2D #2DBE39
monochromatic
#3E165B #5F218D #812DBE #9F52D6 #BA84E2

Accessibility & contrast

On white

6.88
#812DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#812DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812DBE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DBE#FFFFFF#000000##FFFFFF
##812DBE1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#765174
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812dbe;
/* rgb */ color: rgb(129, 45, 190);
/* oklch */ color: oklch(49.5% 0.213 306.2);
Tailwind
colors: {
  custom: {
    50: '#ab6fd3',
    500: '#812dbe',
    950: '#000000',
  },
}
SCSS
$custom: #812dbe;
$custom-light: #ab6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#812dbe",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 274.759,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49513,
    "c": 0.21279,
    "h": 306.2
  },
  "luminance": 0.10262
}

Semantic roles & 50–950 ramp

primary
#812DBE
secondary
#9DCB7C
accent
#E54387
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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