#8E2F7E#8E2F7E

#8E2F7E is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.4% C 0.158 H 335.1°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#8E2F7E
RGBrgb(142, 47, 126)
HSLhsl(310, 50%, 37%)
HSVhsv(310, 67%, 56%)
CMYKcmyk(0%, 66.9%, 11.3%, 44.3%)
CIE-LABlab(36.54, 49.26, -24.39)
CIE-LCHlch(36.54, 54.97, 333.65°)
OKLaboklab(47.36% 0.1434 -0.0665)
OKLCHoklch(47.36% 0.158 335.1)
XYZxyz(15.9379, 9.2915, 20.6886)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F7E #2F8E3F
analogous
#6F2F8E #8E2F7E #8E2F4F
triadic
#8E2F7E #7E8E2F #2F7E8E
tetradic
#8E2F7E #8E6F2F #2F8E3F #2F4F8E
square
#8E2F7E #8E6F2F #2F8E3F #2F4F8E
split-complementary
#8E2F7E #4F8E2F #2F8E6F
monochromatic
#32112C #602055 #8E2F7E #BC3EA7 #CE6ABD

Accessibility & contrast

On white

7.35
#8E2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8E2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2F7E
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F7E#FFFFFF#000000##FFFFFF
##8E2F7E1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D80
Deuteranopia (green-blind)
#4E5B7C
Tritanopia (blue-blind)
#953552
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2f7e;
/* rgb */ color: rgb(142, 47, 126);
/* oklch */ color: oklch(47.4% 0.158 335.1);
Tailwind
colors: {
  custom: {
    50: '#b26fa3',
    500: '#8e2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f7e;
$custom-light: #b26fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f7e",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 310.105,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47362,
    "c": 0.15807,
    "h": 335.1
  },
  "luminance": 0.0929
}

Semantic roles & 50–950 ramp

primary
#8E2F7E
secondary
#64B572
accent
#DA664E
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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