#812AC0#812AC0

#812AC0 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.4% C 0.218 H 306.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#812AC0
RGBrgb(129, 42, 192)
HSLhsl(275, 64%, 46%)
HSVhsv(275, 78%, 75%)
CMYKcmyk(32.8%, 78.1%, 0%, 24.7%)
CIE-LABlab(38.07, 61.28, -61.88)
CIE-LCHlch(38.07, 87.09, 314.72°)
OKLaboklab(49.4% 0.1279 -0.1762)
OKLCHoklch(49.4% 0.218 306)
XYZxyz(19.3935, 10.1290, 50.7924)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AC0 #69C02A
analogous
#362AC0 #812AC0 #C02AB4
triadic
#812AC0 #C0812A #2AC081
tetradic
#812AC0 #C0362A #69C02A #2AB4C0
square
#812AC0 #C0362A #69C02A #2AB4C0
split-complementary
#812AC0 #B4C02A #2AC036
monochromatic
#3E145C #5F1F8E #812AC0 #9F4FD8 #BA81E3

Accessibility & contrast

On white

6.94
#812AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #812AC0
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AC0#FFFFFF#000000##FFFFFF
##812AC01.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#765175
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812ac0;
/* rgb */ color: rgb(129, 42, 192);
/* oklch */ color: oklch(49.4% 0.218 306.0);
Tailwind
colors: {
  custom: {
    50: '#ab6ed4',
    500: '#812ac0',
    950: '#000000',
  },
}
SCSS
$custom: #812ac0;
$custom-light: #ab6ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#812ac0",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 274.8,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49396,
    "c": 0.21767,
    "h": 306
  },
  "luminance": 0.10129
}

Semantic roles & 50–950 ramp

primary
#812AC0
secondary
#9CCC7A
accent
#E74187
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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