#8E237D#8E237D

#8E237D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.173 H 335.3°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#8E237D
RGBrgb(142, 35, 125)
HSLhsl(310, 60%, 35%)
HSVhsv(310, 75%, 56%)
CMYKcmyk(0%, 75.4%, 12%, 44.3%)
CIE-LABlab(34.87, 53.65, -26.38)
CIE-LCHlch(34.87, 59.78, 333.82°)
OKLaboklab(46.14% 0.1568 -0.072)
OKLCHoklch(46.14% 0.173 335.3)
XYZxyz(15.4582, 8.4349, 20.2120)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E237D #238E34
analogous
#6A238E #8E237D #8E2347
triadic
#8E237D #7D8E23 #237D8E
tetradic
#8E237D #8E6A23 #238E34 #23478E
square
#8E237D #8E6A23 #238E34 #23478E
split-complementary
#8E237D #478E23 #238E6A
monochromatic
#2C0B27 #5D1752 #8E237D #BF2FA8 #D556C1

Accessibility & contrast

On white

7.82
#8E237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8E237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E237D
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E237D#FFFFFF#000000##FFFFFF
##8E237D1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#49587A
Tritanopia (blue-blind)
#952C4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e237d;
/* rgb */ color: rgb(142, 35, 125);
/* oklch */ color: oklch(46.1% 0.173 335.3);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8e237d',
    950: '#000000',
  },
}
SCSS
$custom: #8e237d;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e237d",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 309.533,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46139,
    "c": 0.17251,
    "h": 335.3
  },
  "luminance": 0.08434
}

Semantic roles & 50–950 ramp

primary
#8E237D
secondary
#53B964
accent
#E45E44
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E237D

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

Preview Lab → · Contrast checker → · Palette generator →

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