#812BAC#812BAC

#812BAC is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.198 H 311.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#812BAC
RGBrgb(129, 43, 172)
HSLhsl(280, 60%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(25%, 75%, 0%, 32.5%)
CIE-LABlab(36.69, 56.57, -52.29)
CIE-LCHlch(36.69, 77.03, 317.25°)
OKLaboklab(47.95% 0.1311 -0.148)
OKLCHoklch(47.95% 0.198 311.5)
XYZxyz(17.3621, 9.3739, 39.9165)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BAC #56AC2B
analogous
#412BAC #812BAC #AC2B97
triadic
#812BAC #AC812B #2BAC81
tetradic
#812BAC #AC412B #56AC2B #2B97AC
square
#812BAC #AC412B #56AC2B #2B97AC
split-complementary
#812BAC #97AC2B #2BAC41
monochromatic
#38134A #5C1F7B #812BAC #A144D0 #BA75DC

Accessibility & contrast

On white

7.31
#812BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#812BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BAC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BAC#FFFFFF#000000##FFFFFF
##812BAC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#1558A9
Tritanopia (blue-blind)
#7C496A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812bac;
/* rgb */ color: rgb(129, 43, 172);
/* oklch */ color: oklch(48.0% 0.198 311.5);
Tailwind
colors: {
  custom: {
    50: '#aa6dc5',
    500: '#812bac',
    950: '#000000',
  },
}
SCSS
$custom: #812bac;
$custom-light: #aa6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#812bac",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47953,
    "c": 0.19771,
    "h": 311.5
  },
  "luminance": 0.09373
}

Semantic roles & 50–950 ramp

primary
#812BAC
secondary
#8BC46F
accent
#E34579
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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