#8E288B#8E288B

#8E288B is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.177 H 329.2°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#8E288B
RGBrgb(142, 40, 139)
HSLhsl(302, 56%, 36%)
HSVhsv(302, 72%, 56%)
CMYKcmyk(0%, 71.8%, 2.1%, 44.3%)
CIE-LABlab(36.24, 54.17, -32.90)
CIE-LCHlch(36.24, 63.38, 328.72°)
OKLaboklab(47.37% 0.1525 -0.0909)
OKLCHoklch(47.37% 0.178 329.2)
XYZxyz(16.5742, 9.1337, 25.3111)
Luminance0.0913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E288B #288E2B
analogous
#5E288E #8E288B #8E2858
triadic
#8E288B #8B8E28 #288B8E
tetradic
#8E288B #8E5E28 #288E2B #28588E
square
#8E288B #8E5E28 #288E2B #28588E
split-complementary
#8E288B #588E28 #288E5E
monochromatic
#2F0D2E #5E1B5C #8E288B #BE35BA #D25FCE

Accessibility & contrast

On white

7.43
#8E288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8E288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E288B
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E288B#FFFFFF#000000##FFFFFF
##8E288B1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4D8E
Deuteranopia (green-blind)
#455A88
Tritanopia (blue-blind)
#933657
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e288b;
/* rgb */ color: rgb(142, 40, 139);
/* oklch */ color: oklch(47.4% 0.177 329.2);
Tailwind
colors: {
  custom: {
    50: '#b26cad',
    500: '#8e288b',
    950: '#000000',
  },
}
SCSS
$custom: #8e288b;
$custom-light: #b26cad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e288b",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 301.765,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47366,
    "c": 0.1775,
    "h": 329.2
  },
  "luminance": 0.09132
}

Semantic roles & 50–950 ramp

primary
#8E288B
secondary
#5BB75D
accent
#DF4D48
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E288B

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

Preview Lab → · Contrast checker → · Palette generator →

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