#812CB2#812CB2

#812CB2 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.202 H 309.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#812CB2
RGBrgb(129, 44, 178)
HSLhsl(278, 60%, 44%)
HSVhsv(278, 75%, 70%)
CMYKcmyk(27.5%, 75.3%, 0%, 30.2%)
CIE-LABlab(37.27, 57.47, -54.93)
CIE-LCHlch(37.27, 79.50, 316.29°)
OKLaboklab(48.5% 0.1291 -0.1557)
OKLCHoklch(48.5% 0.202 309.7)
XYZxyz(17.9882, 9.6832, 43.0323)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CB2 #5DB22C
analogous
#3E2CB2 #812CB2 #B22CA0
triadic
#812CB2 #B2812C #2CB281
tetradic
#812CB2 #B23E2C #5DB22C #2CA0B2
square
#812CB2 #B23E2C #5DB22C #2CA0B2
split-complementary
#812CB2 #A0B22C #2CB23E
monochromatic
#3A1450 #5D2081 #812CB2 #A049D2 #BA7ADE

Accessibility & contrast

On white

7.15
#812CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#812CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CB2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CB2#FFFFFF#000000##FFFFFF
##812CB21.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0359AF
Tritanopia (blue-blind)
#7A4C6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812cb2;
/* rgb */ color: rgb(129, 44, 178);
/* oklch */ color: oklch(48.5% 0.202 309.7);
Tailwind
colors: {
  custom: {
    50: '#aa6eca',
    500: '#812cb2',
    950: '#000000',
  },
}
SCSS
$custom: #812cb2;
$custom-light: #aa6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#812cb2",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 278.06,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48496,
    "c": 0.20232,
    "h": 309.7
  },
  "luminance": 0.09683
}

Semantic roles & 50–950 ramp

primary
#812CB2
secondary
#92C673
accent
#E4447F
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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