#812CB8#812CB8

#812CB8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.0% C 0.208 H 308.0°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#812CB8
RGBrgb(129, 44, 184)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 76%, 72%)
CMYKcmyk(29.9%, 76.1%, 0%, 27.8%)
CIE-LABlab(37.72, 58.77, -57.76)
CIE-LCHlch(37.72, 82.40, 315.50°)
OKLaboklab(48.95% 0.128 -0.1641)
OKLCHoklch(48.95% 0.208 308)
XYZxyz(18.6039, 9.9295, 46.2746)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CB8 #63B82C
analogous
#3B2CB8 #812CB8 #B82CA9
triadic
#812CB8 #B8812C #2CB881
tetradic
#812CB8 #B83B2C #63B82C #2CA9B8
square
#812CB8 #B83B2C #63B82C #2CA9B8
split-complementary
#812CB8 #A9B82C #2CB83B
monochromatic
#3C1455 #5E2087 #812CB8 #9F4DD4 #BA7EE0

Accessibility & contrast

On white

7.03
#812CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#812CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CB8
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CB8#FFFFFF#000000##FFFFFF
##812CB81.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812cb8;
/* rgb */ color: rgb(129, 44, 184);
/* oklch */ color: oklch(49.0% 0.208 308.0);
Tailwind
colors: {
  custom: {
    50: '#ab6ece',
    500: '#812cb8',
    950: '#000000',
  },
}
SCSS
$custom: #812cb8;
$custom-light: #ab6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#812cb8",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 276.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48952,
    "c": 0.20806,
    "h": 308
  },
  "luminance": 0.09929
}

Semantic roles & 50–950 ramp

primary
#812CB8
secondary
#97C977
accent
#E54383
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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