#8E238B#8E238B

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

Color values

HEX#8E238B
RGBrgb(142, 35, 139)
HSLhsl(302, 60%, 35%)
HSVhsv(302, 75%, 56%)
CMYKcmyk(0%, 75.4%, 2.1%, 44.3%)
CIE-LABlab(35.63, 55.90, -33.87)
CIE-LCHlch(35.63, 65.36, 328.79°)
OKLaboklab(46.93% 0.1574 -0.0937)
OKLCHoklch(46.93% 0.183 329.2)
XYZxyz(16.4164, 8.8182, 25.2585)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E238B #238E26
analogous
#5B238E #8E238B #8E2356
triadic
#8E238B #8B8E23 #238B8E
tetradic
#8E238B #8E5B23 #238E26 #23568E
square
#8E238B #8E5B23 #238E26 #23568E
split-complementary
#8E238B #568E23 #238E5B
monochromatic
#2C0B2B #5D175B #8E238B #BF2FBB #D556D2

Accessibility & contrast

On white

7.60
#8E238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E238B
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E238B#FFFFFF#000000##FFFFFF
##8E238B1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8E
Deuteranopia (green-blind)
#425988
Tritanopia (blue-blind)
#933355
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e238b;
/* rgb */ color: rgb(142, 35, 139);
/* oklch */ color: oklch(46.9% 0.183 329.2);
Tailwind
colors: {
  custom: {
    50: '#b36aad',
    500: '#8e238b',
    950: '#000000',
  },
}
SCSS
$custom: #8e238b;
$custom-light: #b36aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e238b",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 301.682,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4693,
    "c": 0.18317,
    "h": 329.2
  },
  "luminance": 0.08817
}

Semantic roles & 50–950 ramp

primary
#8E238B
secondary
#53B956
accent
#E44944
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E238B

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

Preview Lab → · Contrast checker → · Palette generator →

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