#8E238F#8E238F

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

Color values

HEX#8E238F
RGBrgb(142, 35, 143)
HSLhsl(299, 61%, 35%)
HSVhsv(299, 76%, 56%)
CMYKcmyk(0.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(35.86, 56.58, -35.96)
CIE-LCHlch(35.86, 67.04, 327.56°)
OKLaboklab(47.17% 0.1574 -0.0997)
OKLCHoklch(47.17% 0.186 327.6)
XYZxyz(16.7141, 8.9372, 26.8260)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E238F #248F23
analogous
#58238F #8E238F #8F235A
triadic
#8E238F #8F8E23 #238F8E
tetradic
#8E238F #8F5823 #248F23 #235A8F
square
#8E238F #8F5823 #248F23 #235A8F
split-complementary
#8E238F #5A8F23 #238F58
monochromatic
#2C0B2D #5D175E #8E238F #BF2FC0 #D557D6

Accessibility & contrast

On white

7.53
#8E238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8E238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E238F
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E238F#FFFFFF#000000##FFFFFF
##8E238F1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094C92
Deuteranopia (green-blind)
#40598C
Tritanopia (blue-blind)
#923557
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e238f;
/* rgb */ color: rgb(142, 35, 143);
/* oklch */ color: oklch(47.2% 0.186 327.6);
Tailwind
colors: {
  custom: {
    50: '#b36ab0',
    500: '#8e238f',
    950: '#000000',
  },
}
SCSS
$custom: #8e238f;
$custom-light: #b36ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e238f",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 299.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4717,
    "c": 0.18632,
    "h": 327.6
  },
  "luminance": 0.08936
}

Semantic roles & 50–950 ramp

primary
#8E238F
secondary
#55BA54
accent
#E44445
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E238F

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

Preview Lab → · Contrast checker → · Palette generator →

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