#8D1A97#8D1A97

#8D1A97 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.9% C 0.201 H 324.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8D1A97
RGBrgb(141, 26, 151)
HSLhsl(295, 71%, 35%)
HSVhsv(295, 83%, 59%)
CMYKcmyk(6.6%, 82.8%, 0%, 40.8%)
CIE-LABlab(35.28, 60.36, -41.80)
CIE-LCHlch(35.28, 73.42, 325.30°)
OKLaboklab(46.88% 0.1631 -0.1167)
OKLCHoklch(46.88% 0.201 324.4)
XYZxyz(16.9394, 8.6370, 30.0471)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1A97 #24971A
analogous
#4F1A97 #8D1A97 #971A63
triadic
#8D1A97 #978D1A #1A978D
tetradic
#8D1A97 #974F1A #24971A #1A6397
square
#8D1A97 #974F1A #24971A #1A6397
split-complementary
#8D1A97 #63971A #1A974F
monochromatic
#2B082F #5C1163 #8D1A97 #BE23CB #D44BE0

Accessibility & contrast

On white

7.70
#8D1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8D1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1A97
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1A97#FFFFFF#000000##FFFFFF
##8D1A971.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#355794
Tritanopia (blue-blind)
#90345A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d1a97;
/* rgb */ color: rgb(141, 26, 151);
/* oklch */ color: oklch(46.9% 0.201 324.4);
Tailwind
colors: {
  custom: {
    50: '#b267b6',
    500: '#8d1a97',
    950: '#000000',
  },
}
SCSS
$custom: #8d1a97;
$custom-light: #b267b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1a97",
  "rgb": {
    "r": 141,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 295.2,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46877,
    "c": 0.20055,
    "h": 324.4
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#8D1A97
secondary
#54C24B
accent
#ED3A49
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8D1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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