#8E237B#8E237B

#8E237B is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.0% C 0.171 H 336.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8E237B
RGBrgb(142, 35, 123)
HSLhsl(311, 60%, 35%)
HSVhsv(311, 75%, 56%)
CMYKcmyk(0%, 75.4%, 13.4%, 44.3%)
CIE-LABlab(34.77, 53.34, -25.29)
CIE-LCHlch(34.77, 59.03, 334.64°)
OKLaboklab(46.03% 0.1566 -0.0689)
OKLCHoklch(46.03% 0.171 336.2)
XYZxyz(15.3318, 8.3843, 19.5459)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E237B #238E36
analogous
#6C238E #8E237B #8E2346
triadic
#8E237B #7B8E23 #237B8E
tetradic
#8E237B #8E6C23 #238E36 #23468E
square
#8E237B #8E6C23 #238E36 #23468E
split-complementary
#8E237B #468E23 #238E6C
monochromatic
#2C0B26 #5D1750 #8E237B #BF2FA6 #D556BF

Accessibility & contrast

On white

7.85
#8E237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8E237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E237B
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E237B#FFFFFF#000000##FFFFFF
##8E237B1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477D
Deuteranopia (green-blind)
#4A5878
Tritanopia (blue-blind)
#962B4C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e237b;
/* rgb */ color: rgb(142, 35, 123);
/* oklch */ color: oklch(46.0% 0.171 336.2);
Tailwind
colors: {
  custom: {
    50: '#b369a1',
    500: '#8e237b',
    950: '#000000',
  },
}
SCSS
$custom: #8e237b;
$custom-light: #b369a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e237b",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 310.654,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46032,
    "c": 0.17106,
    "h": 336.2
  },
  "luminance": 0.08383
}

Semantic roles & 50–950 ramp

primary
#8E237B
secondary
#53B965
accent
#E46144
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E237B

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

Preview Lab → · Contrast checker → · Palette generator →

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