#812DAB#812DAB

#812DAB is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.195 H 311.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#812DAB
RGBrgb(129, 45, 171)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 74%, 67%)
CMYKcmyk(24.6%, 73.7%, 0%, 32.9%)
CIE-LABlab(36.90, 55.56, -51.36)
CIE-LCHlch(36.90, 75.66, 317.25°)
OKLaboklab(48.08% 0.1294 -0.1453)
OKLCHoklch(48.08% 0.195 311.7)
XYZxyz(17.3410, 9.4846, 39.4374)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DAB #57AB2D
analogous
#422DAB #812DAB #AB2D96
triadic
#812DAB #AB812D #2DAB81
tetradic
#812DAB #AB422D #57AB2D #2D96AB
square
#812DAB #AB422D #57AB2D #2D96AB
split-complementary
#812DAB #96AB2D #2DAB42
monochromatic
#38144A #5C207B #812DAB #A147CE #BA77DB

Accessibility & contrast

On white

7.25
#812DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#812DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DAB
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DAB#FFFFFF#000000##FFFFFF
##812DAB1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1A58A8
Tritanopia (blue-blind)
#7C496A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812dab;
/* rgb */ color: rgb(129, 45, 171);
/* oklch */ color: oklch(48.1% 0.195 311.7);
Tailwind
colors: {
  custom: {
    50: '#aa6ec5',
    500: '#812dab',
    950: '#000000',
  },
}
SCSS
$custom: #812dab;
$custom-light: #aa6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#812dab",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 280,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48077,
    "c": 0.1945,
    "h": 311.7
  },
  "luminance": 0.09484
}

Semantic roles & 50–950 ramp

primary
#812DAB
secondary
#8CC371
accent
#E2467A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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