#8E237F#8E237F

#8E237F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.174 H 334.4°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8E237F
RGBrgb(142, 35, 127)
HSLhsl(308, 60%, 35%)
HSVhsv(308, 75%, 56%)
CMYKcmyk(0%, 75.4%, 10.6%, 44.3%)
CIE-LABlab(34.98, 53.96, -27.46)
CIE-LCHlch(34.98, 60.55, 333.02°)
OKLaboklab(46.25% 0.1569 -0.0752)
OKLCHoklch(46.25% 0.174 334.4)
XYZxyz(15.5873, 8.4865, 20.8917)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E237F #238E32
analogous
#67238E #8E237F #8E234A
triadic
#8E237F #7F8E23 #237F8E
tetradic
#8E237F #8E6723 #238E32 #234A8E
square
#8E237F #8E6723 #238E32 #234A8E
split-complementary
#8E237F #4A8E23 #238E67
monochromatic
#2C0B27 #5D1753 #8E237F #BF2FAB #D556C4

Accessibility & contrast

On white

7.79
#8E237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8E237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E237F
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E237F#FFFFFF#000000##FFFFFF
##8E237F1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214882
Deuteranopia (green-blind)
#48587C
Tritanopia (blue-blind)
#952D4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e237f;
/* rgb */ color: rgb(142, 35, 127);
/* oklch */ color: oklch(46.2% 0.174 334.4);
Tailwind
colors: {
  custom: {
    50: '#b26aa4',
    500: '#8e237f',
    950: '#000000',
  },
}
SCSS
$custom: #8e237f;
$custom-light: #b26aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e237f",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 308.411,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46247,
    "c": 0.17399,
    "h": 334.4
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#8E237F
secondary
#53B962
accent
#E45B44
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E237F

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

Preview Lab → · Contrast checker → · Palette generator →

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