#81287F#81287F

#81287F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.160 H 328.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#81287F
RGBrgb(129, 40, 127)
HSLhsl(301, 53%, 33%)
HSVhsv(301, 69%, 51%)
CMYKcmyk(0%, 69%, 1.6%, 49.4%)
CIE-LABlab(33.39, 48.91, -30.12)
CIE-LCHlch(33.39, 57.44, 328.38°)
OKLaboklab(44.67% 0.1373 -0.0832)
OKLCHoklch(44.67% 0.16 328.8)
XYZxyz(13.6427, 7.7180, 20.8457)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81287F #28812A
analogous
#562881 #81287F #812852
triadic
#81287F #7F8128 #287F81
tetradic
#81287F #815628 #28812A #285281
square
#81287F #815628 #28812A #285281
split-complementary
#81287F #528128 #288156
monochromatic
#240B23 #521A51 #81287F #B036AD #CB58C9

Accessibility & contrast

On white

8.26
#81287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#81287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81287F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81287F#FFFFFF#000000##FFFFFF
##81287F1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4782
Deuteranopia (green-blind)
#40537D
Tritanopia (blue-blind)
#853450
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #81287f;
/* rgb */ color: rgb(129, 40, 127);
/* oklch */ color: oklch(44.7% 0.160 328.8);
Tailwind
colors: {
  custom: {
    50: '#a96aa4',
    500: '#81287f',
    950: '#000000',
  },
}
SCSS
$custom: #81287f;
$custom-light: #a96aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#81287f",
  "rgb": {
    "r": 129,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 301.348,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44671,
    "c": 0.16049,
    "h": 328.8
  },
  "luminance": 0.07717
}

Semantic roles & 50–950 ramp

primary
#81287F
secondary
#54B057
accent
#DC4F4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #81287F

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

Preview Lab → · Contrast checker → · Palette generator →

#81287F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva