#8E2F7D#8E2F7D

#8E2F7D is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.3% C 0.157 H 335.6°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8E2F7D
RGBrgb(142, 47, 125)
HSLhsl(311, 50%, 37%)
HSVhsv(311, 67%, 56%)
CMYKcmyk(0%, 66.9%, 12%, 44.3%)
CIE-LABlab(36.49, 49.09, -23.85)
CIE-LCHlch(36.49, 54.58, 334.09°)
OKLaboklab(47.31% 0.1433 -0.0649)
OKLCHoklch(47.31% 0.157 335.6)
XYZxyz(15.8737, 9.2658, 20.3505)
Luminance0.0926 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F7D #2F8E40
analogous
#702F8E #8E2F7D #8E2F4D
triadic
#8E2F7D #7D8E2F #2F7D8E
tetradic
#8E2F7D #8E702F #2F8E40 #2F4D8E
square
#8E2F7D #8E702F #2F8E40 #2F4D8E
split-complementary
#8E2F7D #4D8E2F #2F8E70
monochromatic
#32112C #602055 #8E2F7D #BC3EA5 #CE6ABC

Accessibility & contrast

On white

7.36
#8E2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8E2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2F7D
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F7D#FFFFFF#000000##FFFFFF
##8E2F7D1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304D7F
Deuteranopia (green-blind)
#4E5B7B
Tritanopia (blue-blind)
#953551
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2f7d;
/* rgb */ color: rgb(142, 47, 125);
/* oklch */ color: oklch(47.3% 0.157 335.6);
Tailwind
colors: {
  custom: {
    50: '#b26fa3',
    500: '#8e2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f7d;
$custom-light: #b26fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f7d",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 310.737,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47311,
    "c": 0.1573,
    "h": 335.6
  },
  "luminance": 0.09264
}

Semantic roles & 50–950 ramp

primary
#8E2F7D
secondary
#64B573
accent
#DA674E
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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