#8E237E#8E237E

#8E237E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.173 H 334.9°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8E237E
RGBrgb(142, 35, 126)
HSLhsl(309, 60%, 35%)
HSVhsv(309, 75%, 56%)
CMYKcmyk(0%, 75.4%, 11.3%, 44.3%)
CIE-LABlab(34.92, 53.80, -26.92)
CIE-LCHlch(34.92, 60.16, 333.42°)
OKLaboklab(46.19% 0.1568 -0.0736)
OKLCHoklch(46.19% 0.173 334.9)
XYZxyz(15.5224, 8.4606, 20.5502)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E237E #238E33
analogous
#69238E #8E237E #8E2349
triadic
#8E237E #7E8E23 #237E8E
tetradic
#8E237E #8E6923 #238E33 #23498E
square
#8E237E #8E6923 #238E33 #23498E
split-complementary
#8E237E #498E23 #238E69
monochromatic
#2C0B27 #5D1752 #8E237E #BF2FAA #D556C2

Accessibility & contrast

On white

7.80
#8E237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E237E
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E237E#FFFFFF#000000##FFFFFF
##8E237E1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224880
Deuteranopia (green-blind)
#49587B
Tritanopia (blue-blind)
#952C4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e237e;
/* rgb */ color: rgb(142, 35, 126);
/* oklch */ color: oklch(46.2% 0.173 334.9);
Tailwind
colors: {
  custom: {
    50: '#b26aa3',
    500: '#8e237e',
    950: '#000000',
  },
}
SCSS
$custom: #8e237e;
$custom-light: #b26aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e237e",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 308.972,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46193,
    "c": 0.17325,
    "h": 334.9
  },
  "luminance": 0.08459
}

Semantic roles & 50–950 ramp

primary
#8E237E
secondary
#53B963
accent
#E45C44
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E237E

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

Preview Lab → · Contrast checker → · Palette generator →

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