#8E2B7F#8E2B7F

#8E2B7F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.164 H 334.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#8E2B7F
RGBrgb(142, 43, 127)
HSLhsl(309, 54%, 36%)
HSVhsv(309, 70%, 56%)
CMYKcmyk(0%, 69.7%, 10.6%, 44.3%)
CIE-LABlab(36.01, 51.04, -25.85)
CIE-LCHlch(36.01, 57.21, 333.14°)
OKLaboklab(46.99% 0.1483 -0.0706)
OKLCHoklch(46.99% 0.164 334.6)
XYZxyz(15.8501, 9.0122, 20.9793)
Luminance0.0901 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B7F #2B8E3A
analogous
#6C2B8E #8E2B7F #8E2B4E
triadic
#8E2B7F #7F8E2B #2B7F8E
tetradic
#8E2B7F #8E6C2B #2B8E3A #2B4E8E
square
#8E2B7F #8E6C2B #2B8E3A #2B4E8E
split-complementary
#8E2B7F #4E8E2B #2B8E6C
monochromatic
#300F2B #5F1D55 #8E2B7F #BD39A9 #D063BF

Accessibility & contrast

On white

7.49
#8E2B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8E2B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B7F
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B7F#FFFFFF#000000##FFFFFF
##8E2B7F1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B81
Deuteranopia (green-blind)
#4C5A7D
Tritanopia (blue-blind)
#953351
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2b7f;
/* rgb */ color: rgb(142, 43, 127);
/* oklch */ color: oklch(47.0% 0.164 334.6);
Tailwind
colors: {
  custom: {
    50: '#b26da4',
    500: '#8e2b7f',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b7f;
$custom-light: #b26da4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b7f",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 309.091,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46992,
    "c": 0.16427,
    "h": 334.6
  },
  "luminance": 0.09011
}

Semantic roles & 50–950 ramp

primary
#8E2B7F
secondary
#5FB66C
accent
#DD614B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E2B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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