#8E2A7D#8E2A7D

#8E2A7D is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.8% C 0.164 H 335.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8E2A7D
RGBrgb(142, 42, 125)
HSLhsl(310, 54%, 36%)
HSVhsv(310, 70%, 56%)
CMYKcmyk(0%, 70.4%, 12%, 44.3%)
CIE-LABlab(35.77, 51.11, -24.97)
CIE-LCHlch(35.77, 56.89, 333.96°)
OKLaboklab(46.79% 0.1493 -0.0681)
OKLCHoklch(46.79% 0.164 335.5)
XYZxyz(15.6852, 8.8887, 20.2877)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2A7D #2A8E3B
analogous
#6D2A8E #8E2A7D #8E2A4B
triadic
#8E2A7D #7D8E2A #2A7D8E
tetradic
#8E2A7D #8E6D2A #2A8E3B #2A4B8E
square
#8E2A7D #8E6D2A #2A8E3B #2A4B8E
split-complementary
#8E2A7D #4B8E2A #2A8E6D
monochromatic
#300E2A #5F1C53 #8E2A7D #BD38A7 #D162BE

Accessibility & contrast

On white

7.56
#8E2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8E2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2A7D
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2A7D#FFFFFF#000000##FFFFFF
##8E2A7D1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B7F
Deuteranopia (green-blind)
#4C597B
Tritanopia (blue-blind)
#953150
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e2a7d;
/* rgb */ color: rgb(142, 42, 125);
/* oklch */ color: oklch(46.8% 0.164 335.5);
Tailwind
colors: {
  custom: {
    50: '#b26da3',
    500: '#8e2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2a7d;
$custom-light: #b26da3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2a7d",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 310.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46787,
    "c": 0.16404,
    "h": 335.5
  },
  "luminance": 0.08887
}

Semantic roles & 50–950 ramp

primary
#8E2A7D
secondary
#5DB66C
accent
#DE634A
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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