#8E237C#8E237C

#8E237C is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.1% C 0.172 H 335.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8E237C
RGBrgb(142, 35, 124)
HSLhsl(310, 60%, 35%)
HSVhsv(310, 75%, 56%)
CMYKcmyk(0%, 75.4%, 12.7%, 44.3%)
CIE-LABlab(34.82, 53.49, -25.83)
CIE-LCHlch(34.82, 59.40, 334.22°)
OKLaboklab(46.09% 0.1567 -0.0705)
OKLCHoklch(46.09% 0.172 335.8)
XYZxyz(15.3947, 8.4095, 19.8773)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E237C #238E35
analogous
#6A238E #8E237C #8E2347
triadic
#8E237C #7C8E23 #237C8E
tetradic
#8E237C #8E6A23 #238E35 #23478E
square
#8E237C #8E6A23 #238E35 #23478E
split-complementary
#8E237C #478E23 #238E6A
monochromatic
#2C0B26 #5D1751 #8E237C #BF2FA7 #D556C0

Accessibility & contrast

On white

7.83
#8E237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E237C
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E237C#FFFFFF#000000##FFFFFF
##8E237C1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#4A5879
Tritanopia (blue-blind)
#952B4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e237c;
/* rgb */ color: rgb(142, 35, 124);
/* oklch */ color: oklch(46.1% 0.172 335.8);
Tailwind
colors: {
  custom: {
    50: '#b369a2',
    500: '#8e237c',
    950: '#000000',
  },
}
SCSS
$custom: #8e237c;
$custom-light: #b369a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e237c",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 310.093,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46085,
    "c": 0.17178,
    "h": 335.8
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#8E237C
secondary
#53B965
accent
#E45F44
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E237C

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

Preview Lab → · Contrast checker → · Palette generator →

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