#81238C#81238C

#81238C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.178 H 323.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#81238C
RGBrgb(129, 35, 140)
HSLhsl(294, 60%, 34%)
HSVhsv(294, 75%, 55%)
CMYKcmyk(7.9%, 75%, 0%, 45.1%)
CIE-LABlab(33.49, 53.17, -38.03)
CIE-LCHlch(33.49, 65.38, 324.42°)
OKLaboklab(44.99% 0.1425 -0.1061)
OKLCHoklch(44.99% 0.178 323.3)
XYZxyz(14.3875, 7.7635, 25.5465)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81238C #2E8C23
analogous
#4D238C #81238C #8C2363
triadic
#81238C #8C8123 #238C81
tetradic
#81238C #8C4D23 #2E8C23 #23638C
square
#81238C #8C4D23 #2E8C23 #23638C
split-complementary
#81238C #638C23 #238C4D
monochromatic
#270B2A #54175B #81238C #AE2FBD #C755D4

Accessibility & contrast

On white

8.23
#81238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #81238C
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81238C#FFFFFF#000000##FFFFFF
##81238C1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#35528A
Tritanopia (blue-blind)
#833656
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81238c;
/* rgb */ color: rgb(129, 35, 140);
/* oklch */ color: oklch(45.0% 0.178 323.3);
Tailwind
colors: {
  custom: {
    50: '#a968ae',
    500: '#81238c',
    950: '#000000',
  },
}
SCSS
$custom: #81238c;
$custom-light: #a968ae;
$custom-dark: #000000;
JSON
{
  "hex": "#81238c",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 293.714,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44988,
    "c": 0.17771,
    "h": 323.3
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#81238C
secondary
#5DB852
accent
#E34555
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81238C

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

Preview Lab → · Contrast checker → · Palette generator →

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