#8E2F7B#8E2F7B

#8E2F7B is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.2% C 0.156 H 336.6°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#8E2F7B
RGBrgb(142, 47, 123)
HSLhsl(312, 50%, 37%)
HSVhsv(312, 67%, 56%)
CMYKcmyk(0%, 66.9%, 13.4%, 44.3%)
CIE-LABlab(36.40, 48.77, -22.75)
CIE-LCHlch(36.40, 53.82, 334.99°)
OKLaboklab(47.21% 0.143 -0.0618)
OKLCHoklch(47.21% 0.156 336.6)
XYZxyz(15.7472, 9.2152, 19.6844)
Luminance0.0921 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F7B #2F8E42
analogous
#722F8E #8E2F7B #8E2F4C
triadic
#8E2F7B #7B8E2F #2F7B8E
tetradic
#8E2F7B #8E722F #2F8E42 #2F4C8E
square
#8E2F7B #8E722F #2F8E42 #2F4C8E
split-complementary
#8E2F7B #4C8E2F #2F8E72
monochromatic
#32112B #602053 #8E2F7B #BC3EA3 #CE6ABA

Accessibility & contrast

On white

7.39
#8E2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8E2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2F7B
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F7B#FFFFFF#000000##FFFFFF
##8E2F7B1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314C7D
Deuteranopia (green-blind)
#4F5B79
Tritanopia (blue-blind)
#953450
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2f7b;
/* rgb */ color: rgb(142, 47, 123);
/* oklch */ color: oklch(47.2% 0.156 336.6);
Tailwind
colors: {
  custom: {
    50: '#b26fa1',
    500: '#8e2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f7b;
$custom-light: #b26fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f7b",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 312,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4721,
    "c": 0.15577,
    "h": 336.6
  },
  "luminance": 0.09214
}

Semantic roles & 50–950 ramp

primary
#8E2F7B
secondary
#64B574
accent
#DA6A4E
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8E2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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