#8E2B7C#8E2B7C

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

Color values

HEX#8E2B7C
RGBrgb(142, 43, 124)
HSLhsl(311, 54%, 36%)
HSVhsv(311, 70%, 56%)
CMYKcmyk(0%, 69.7%, 12.7%, 44.3%)
CIE-LABlab(35.86, 50.56, -24.21)
CIE-LCHlch(35.86, 56.06, 334.41°)
OKLaboklab(46.84% 0.148 -0.0659)
OKLCHoklch(46.84% 0.162 336)
XYZxyz(15.6575, 8.9351, 19.9649)
Luminance0.0893 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B7C #2B8E3D
analogous
#6F2B8E #8E2B7C #8E2B4B
triadic
#8E2B7C #7C8E2B #2B7C8E
tetradic
#8E2B7C #8E6F2B #2B8E3D #2B4B8E
square
#8E2B7C #8E6F2B #2B8E3D #2B4B8E
split-complementary
#8E2B7C #4B8E2B #2B8E6F
monochromatic
#300F2A #5F1D53 #8E2B7C #BD39A5 #D063BC

Accessibility & contrast

On white

7.54
#8E2B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8E2B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B7C
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B7C#FFFFFF#000000##FFFFFF
##8E2B7C1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2b7c;
/* rgb */ color: rgb(142, 43, 124);
/* oklch */ color: oklch(46.8% 0.162 336.0);
Tailwind
colors: {
  custom: {
    50: '#b26da2',
    500: '#8e2b7c',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b7c;
$custom-light: #b26da2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b7c",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 310.909,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46836,
    "c": 0.16199,
    "h": 336
  },
  "luminance": 0.08934
}

Semantic roles & 50–950 ramp

primary
#8E2B7C
secondary
#5FB66F
accent
#DD654B
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E2B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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