#8E238C#8E238C

#8E238C is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.184 H 328.8°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8E238C
RGBrgb(142, 35, 140)
HSLhsl(301, 60%, 35%)
HSVhsv(301, 75%, 56%)
CMYKcmyk(0%, 75.4%, 1.4%, 44.3%)
CIE-LABlab(35.69, 56.07, -34.39)
CIE-LCHlch(35.69, 65.78, 328.47°)
OKLaboklab(46.99% 0.1574 -0.0952)
OKLCHoklch(46.99% 0.184 328.8)
XYZxyz(16.4898, 8.8475, 25.6451)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E238C #238E25
analogous
#5A238E #8E238C #8E2357
triadic
#8E238C #8C8E23 #238C8E
tetradic
#8E238C #8E5A23 #238E25 #23578E
square
#8E238C #8E5A23 #238E25 #23578E
split-complementary
#8E238C #578E23 #238E5A
monochromatic
#2C0B2B #5D175C #8E238C #BF2FBC #D556D3

Accessibility & contrast

On white

7.58
#8E238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8E238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E238C
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E238C#FFFFFF#000000##FFFFFF
##8E238C1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104B8F
Deuteranopia (green-blind)
#425989
Tritanopia (blue-blind)
#933356
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e238c;
/* rgb */ color: rgb(142, 35, 140);
/* oklch */ color: oklch(47.0% 0.184 328.8);
Tailwind
colors: {
  custom: {
    50: '#b36aae',
    500: '#8e238c',
    950: '#000000',
  },
}
SCSS
$custom: #8e238c;
$custom-light: #b36aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8e238c",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 301.121,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46989,
    "c": 0.18395,
    "h": 328.8
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#8E238C
secondary
#53B955
accent
#E44744
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E238C

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

Preview Lab → · Contrast checker → · Palette generator →

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