#8E238D#8E238D

#8E238D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.185 H 328.4°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8E238D
RGBrgb(142, 35, 141)
HSLhsl(301, 60%, 35%)
HSVhsv(301, 75%, 56%)
CMYKcmyk(0%, 75.4%, 0.7%, 44.3%)
CIE-LABlab(35.75, 56.24, -34.92)
CIE-LCHlch(35.75, 66.19, 328.16°)
OKLaboklab(47.05% 0.1574 -0.0967)
OKLCHoklch(47.05% 0.185 328.4)
XYZxyz(16.5639, 8.8772, 26.0352)
Luminance0.0888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E238D #238E24
analogous
#5A238E #8E238D #8E2357
triadic
#8E238D #8D8E23 #238D8E
tetradic
#8E238D #8E5A23 #238E24 #23578E
square
#8E238D #8E5A23 #238E24 #23578E
split-complementary
#8E238D #578E23 #238E5A
monochromatic
#2C0B2B #5D175C #8E238D #BF2FBE #D556D4

Accessibility & contrast

On white

7.57
#8E238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8E238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E238D
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E238D#FFFFFF#000000##FFFFFF
##8E238D1.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B90
Deuteranopia (green-blind)
#41598A
Tritanopia (blue-blind)
#933456
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e238d;
/* rgb */ color: rgb(142, 35, 141);
/* oklch */ color: oklch(47.0% 0.185 328.4);
Tailwind
colors: {
  custom: {
    50: '#b36aaf',
    500: '#8e238d',
    950: '#000000',
  },
}
SCSS
$custom: #8e238d;
$custom-light: #b36aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e238d",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 300.561,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47049,
    "c": 0.18474,
    "h": 328.4
  },
  "luminance": 0.08876
}

Semantic roles & 50–950 ramp

primary
#8E238D
secondary
#53B954
accent
#E44644
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E238D

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

Preview Lab → · Contrast checker → · Palette generator →

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