#81238B#81238B

#81238B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.177 H 323.7°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#81238B
RGBrgb(129, 35, 139)
HSLhsl(294, 60%, 34%)
HSVhsv(294, 75%, 55%)
CMYKcmyk(7.2%, 74.8%, 0%, 45.5%)
CIE-LABlab(33.42, 52.99, -37.52)
CIE-LCHlch(33.42, 64.93, 324.70°)
OKLaboklab(44.92% 0.1426 -0.1046)
OKLCHoklch(44.92% 0.177 323.7)
XYZxyz(14.3141, 7.7341, 25.1600)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81238B #2D8B23
analogous
#4D238B #81238B #8B2361
triadic
#81238B #8B8123 #238B81
tetradic
#81238B #8B4D23 #2D8B23 #23618B
square
#81238B #8B4D23 #2D8B23 #23618B
split-complementary
#81238B #618B23 #238B4D
monochromatic
#260A29 #54175A #81238B #AE2FBC #C854D4

Accessibility & contrast

On white

8.25
#81238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#81238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81238B
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81238B#FFFFFF#000000##FFFFFF
##81238B1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#365289
Tritanopia (blue-blind)
#833655
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81238b;
/* rgb */ color: rgb(129, 35, 139);
/* oklch */ color: oklch(44.9% 0.177 323.7);
Tailwind
colors: {
  custom: {
    50: '#a968ad',
    500: '#81238b',
    950: '#000000',
  },
}
SCSS
$custom: #81238b;
$custom-light: #a968ad;
$custom-dark: #000000;
JSON
{
  "hex": "#81238b",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 294.231,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44923,
    "c": 0.17685,
    "h": 323.7
  },
  "luminance": 0.07733
}

Semantic roles & 50–950 ramp

primary
#81238B
secondary
#5CB852
accent
#E34554
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81238B

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

Preview Lab → · Contrast checker → · Palette generator →

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