#8E2897#8E2897

#8E2897 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.187 H 324.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8E2897
RGBrgb(142, 40, 151)
HSLhsl(295, 58%, 37%)
HSVhsv(295, 74%, 59%)
CMYKcmyk(6%, 73.5%, 0%, 40.8%)
CIE-LABlab(36.94, 56.27, -39.14)
CIE-LCHlch(36.94, 68.54, 325.18°)
OKLaboklab(48.09% 0.1524 -0.109)
OKLCHoklch(48.09% 0.187 324.4)
XYZxyz(17.4996, 9.5038, 30.1848)
Luminance0.0950 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2897 #319728
analogous
#562897 #8E2897 #972869
triadic
#8E2897 #978E28 #28978E
tetradic
#8E2897 #975628 #319728 #286997
square
#8E2897 #975628 #319728 #286997
split-complementary
#8E2897 #699728 #289756
monochromatic
#330E36 #611B67 #8E2897 #BB35C7 #CD64D6

Accessibility & contrast

On white

7.24
#8E2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8E2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2897
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2897#FFFFFF#000000##FFFFFF
##8E28971.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#3D5B94
Tritanopia (blue-blind)
#913B5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2897;
/* rgb */ color: rgb(142, 40, 151);
/* oklch */ color: oklch(48.1% 0.187 324.4);
Tailwind
colors: {
  custom: {
    50: '#b36db6',
    500: '#8e2897',
    950: '#000000',
  },
}
SCSS
$custom: #8e2897;
$custom-light: #b36db6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2897",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 295.135,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48089,
    "c": 0.18738,
    "h": 324.4
  },
  "luminance": 0.09503
}

Semantic roles & 50–950 ramp

primary
#8E2897
secondary
#67BC5F
accent
#E14653
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E2897

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

Preview Lab → · Contrast checker → · Palette generator →

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