#8A2381#8A2381

#8A2381 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.173 H 331.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8A2381
RGBrgb(138, 35, 129)
HSLhsl(305, 60%, 34%)
HSVhsv(305, 75%, 54%)
CMYKcmyk(0%, 74.6%, 6.5%, 45.9%)
CIE-LABlab(34.38, 53.32, -29.70)
CIE-LCHlch(34.38, 61.03, 330.88°)
OKLaboklab(45.72% 0.1528 -0.0817)
OKLCHoklch(45.72% 0.173 331.9)
XYZxyz(15.0447, 8.1915, 21.5534)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2381 #238A2C
analogous
#60238A #8A2381 #8A234E
triadic
#8A2381 #818A23 #23818A
tetradic
#8A2381 #8A6023 #238A2C #234E8A
square
#8A2381 #8A6023 #238A2C #234E8A
split-complementary
#8A2381 #4E8A23 #238A60
monochromatic
#280A26 #591753 #8A2381 #BB2FAF #D454C8

Accessibility & contrast

On white

7.96
#8A2381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2381
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2381#FFFFFF#000000##FFFFFF
##8A23811.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4884
Deuteranopia (green-blind)
#44567E
Tritanopia (blue-blind)
#902F50
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2381;
/* rgb */ color: rgb(138, 35, 129);
/* oklch */ color: oklch(45.7% 0.173 331.9);
Tailwind
colors: {
  custom: {
    50: '#af69a6',
    500: '#8a2381',
    950: '#000000',
  },
}
SCSS
$custom: #8a2381;
$custom-light: #af69a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2381",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 305.243,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45717,
    "c": 0.17326,
    "h": 331.9
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#8A2381
secondary
#51B75A
accent
#E35345
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2381

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

Preview Lab → · Contrast checker → · Palette generator →

#8A2381 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva