#812CBA#812CBA

#812CBA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.210 H 307.4°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#812CBA
RGBrgb(129, 44, 186)
HSLhsl(276, 62%, 45%)
HSVhsv(276, 76%, 73%)
CMYKcmyk(30.6%, 76.3%, 0%, 27.1%)
CIE-LABlab(37.87, 59.21, -58.69)
CIE-LCHlch(37.87, 83.37, 315.26°)
OKLaboklab(49.11% 0.1275 -0.1668)
OKLCHoklch(49.11% 0.21 307.4)
XYZxyz(18.8150, 10.0139, 47.3865)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CBA #65BA2C
analogous
#3A2CBA #812CBA #BA2CAC
triadic
#812CBA #BA812C #2CBA81
tetradic
#812CBA #BA3A2C #65BA2C #2CACBA
square
#812CBA #BA3A2C #65BA2C #2CACBA
split-complementary
#812CBA #ACBA2C #2CBA3A
monochromatic
#3C1557 #5F2089 #812CBA #9F4ED5 #BA80E1

Accessibility & contrast

On white

6.99
#812CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #812CBA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CBA#FFFFFF#000000##FFFFFF
##812CBA1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#774F72
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812cba;
/* rgb */ color: rgb(129, 44, 186);
/* oklch */ color: oklch(49.1% 0.210 307.4);
Tailwind
colors: {
  custom: {
    50: '#ab6ed0',
    500: '#812cba',
    950: '#000000',
  },
}
SCSS
$custom: #812cba;
$custom-light: #ab6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#812cba",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 275.915,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49107,
    "c": 0.20997,
    "h": 307.4
  },
  "luminance": 0.10014
}

Semantic roles & 50–950 ramp

primary
#812CBA
secondary
#99CA78
accent
#E54384
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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