#81239B#81239B

#81239B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.191 H 317.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#81239B
RGBrgb(129, 35, 155)
HSLhsl(287, 63%, 37%)
HSVhsv(287, 77%, 61%)
CMYKcmyk(16.8%, 77.4%, 0%, 39.2%)
CIE-LABlab(34.47, 56.04, -45.64)
CIE-LCHlch(34.47, 72.27, 320.84°)
OKLaboklab(46% 0.1411 -0.1284)
OKLCHoklch(46% 0.191 317.7)
XYZxyz(15.5698, 8.2364, 31.7736)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81239B #3D9B23
analogous
#45239B #81239B #9B2379
triadic
#81239B #9B8123 #239B81
tetradic
#81239B #9B4523 #3D9B23 #23799B
square
#81239B #9B4523 #3D9B23 #23799B
split-complementary
#81239B #799B23 #239B45
monochromatic
#2E0C37 #571869 #81239B #AB2ECD #C05EDB

Accessibility & contrast

On white

7.93
#81239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#81239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81239B
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81239B#FFFFFF#000000##FFFFFF
##81239B1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#275498
Tritanopia (blue-blind)
#803D5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #81239b;
/* rgb */ color: rgb(129, 35, 155);
/* oklch */ color: oklch(46.0% 0.191 317.7);
Tailwind
colors: {
  custom: {
    50: '#a969b9',
    500: '#81239b',
    950: '#000000',
  },
}
SCSS
$custom: #81239b;
$custom-light: #a969b9;
$custom-dark: #000000;
JSON
{
  "hex": "#81239b",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 287,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46002,
    "c": 0.19076,
    "h": 317.7
  },
  "luminance": 0.08236
}

Semantic roles & 50–950 ramp

primary
#81239B
secondary
#70BF5A
accent
#E64265
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #81239B

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

Preview Lab → · Contrast checker → · Palette generator →

#81239B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva