#81238D#81238D

#81238D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.179 H 322.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#81238D
RGBrgb(129, 35, 141)
HSLhsl(293, 60%, 35%)
HSVhsv(293, 75%, 55%)
CMYKcmyk(8.5%, 75.2%, 0%, 44.7%)
CIE-LABlab(33.55, 53.36, -38.55)
CIE-LCHlch(33.55, 65.83, 324.15°)
OKLaboklab(45.05% 0.1425 -0.1077)
OKLCHoklch(45.05% 0.179 322.9)
XYZxyz(14.4615, 7.7931, 25.9366)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81238D #2F8D23
analogous
#4C238D #81238D #8D2364
triadic
#81238D #8D8123 #238D81
tetradic
#81238D #8D4C23 #2F8D23 #23648D
square
#81238D #8D4C23 #2F8D23 #23648D
split-complementary
#81238D #648D23 #238D4C
monochromatic
#270B2B #54175C #81238D #AE2FBE #C655D5

Accessibility & contrast

On white

8.21
#81238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#81238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81238D
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81238D#FFFFFF#000000##FFFFFF
##81238D1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#34528B
Tritanopia (blue-blind)
#833756
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #81238d;
/* rgb */ color: rgb(129, 35, 141);
/* oklch */ color: oklch(45.1% 0.179 322.9);
Tailwind
colors: {
  custom: {
    50: '#a968af',
    500: '#81238d',
    950: '#000000',
  },
}
SCSS
$custom: #81238d;
$custom-light: #a968af;
$custom-dark: #000000;
JSON
{
  "hex": "#81238d",
  "rgb": {
    "r": 129,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 293.208,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.17857,
    "h": 322.9
  },
  "luminance": 0.07792
}

Semantic roles & 50–950 ramp

primary
#81238D
secondary
#5EB953
accent
#E34456
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #81238D

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

Preview Lab → · Contrast checker → · Palette generator →

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