#8E238A#8E238A

#8E238A is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.182 H 329.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8E238A
RGBrgb(142, 35, 138)
HSLhsl(302, 60%, 35%)
HSVhsv(302, 75%, 56%)
CMYKcmyk(0%, 75.4%, 2.8%, 44.3%)
CIE-LABlab(35.58, 55.73, -33.34)
CIE-LCHlch(35.58, 64.95, 329.11°)
OKLaboklab(46.87% 0.1574 -0.0921)
OKLCHoklch(46.87% 0.182 329.7)
XYZxyz(16.3437, 8.7891, 24.8755)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E238A #238E27
analogous
#5D238E #8E238A #8E2355
triadic
#8E238A #8A8E23 #238A8E
tetradic
#8E238A #8E5D23 #238E27 #23558E
square
#8E238A #8E5D23 #238E27 #23558E
split-complementary
#8E238A #558E23 #238E5D
monochromatic
#2C0B2B #5D175A #8E238A #BF2FBA #D556D1

Accessibility & contrast

On white

7.62
#8E238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8E238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E238A
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E238A#FFFFFF#000000##FFFFFF
##8E238A1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144A8D
Deuteranopia (green-blind)
#435987
Tritanopia (blue-blind)
#933255
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e238a;
/* rgb */ color: rgb(142, 35, 138);
/* oklch */ color: oklch(46.9% 0.182 329.7);
Tailwind
colors: {
  custom: {
    50: '#b36aac',
    500: '#8e238a',
    950: '#000000',
  },
}
SCSS
$custom: #8e238a;
$custom-light: #b36aac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e238a",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 302.243,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46871,
    "c": 0.18238,
    "h": 329.7
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

primary
#8E238A
secondary
#53B957
accent
#E44A44
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E238A

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

Preview Lab → · Contrast checker → · Palette generator →

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