#8E238E#8E238E

#8E238E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.186 H 328.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8E238E
RGBrgb(142, 35, 142)
HSLhsl(300, 60%, 35%)
HSVhsv(300, 75%, 56%)
CMYKcmyk(0%, 75.4%, 0%, 44.3%)
CIE-LABlab(35.80, 56.41, -35.44)
CIE-LCHlch(35.80, 66.62, 327.86°)
OKLaboklab(47.11% 0.1574 -0.0982)
OKLCHoklch(47.11% 0.186 328)
XYZxyz(16.6386, 8.9071, 26.4288)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E238E #238E23
analogous
#59238E #8E238E #8E2359
triadic
#8E238E #8E8E23 #238E8E
tetradic
#8E238E #8E5923 #238E23 #23598E
square
#8E238E #8E5923 #238E23 #23598E
split-complementary
#8E238E #598E23 #238E59
monochromatic
#2C0B2C #5D175D #8E238E #BF2FBF #D556D5

Accessibility & contrast

On white

7.55
#8E238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E238E
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E238E#FFFFFF#000000##FFFFFF
##8E238E1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#41598B
Tritanopia (blue-blind)
#933457
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e238e;
/* rgb */ color: rgb(142, 35, 142);
/* oklch */ color: oklch(47.1% 0.186 328.0);
Tailwind
colors: {
  custom: {
    50: '#b36aaf',
    500: '#8e238e',
    950: '#000000',
  },
}
SCSS
$custom: #8e238e;
$custom-light: #b36aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e238e",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 300,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47109,
    "c": 0.18553,
    "h": 328
  },
  "luminance": 0.08906
}

Semantic roles & 50–950 ramp

primary
#8E238E
secondary
#53B953
accent
#E44444
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E238E

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

Preview Lab → · Contrast checker → · Palette generator →

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