#8E2791#8E2791

#8E2791 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.184 H 326.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8E2791
RGBrgb(142, 39, 145)
HSLhsl(298, 58%, 36%)
HSVhsv(298, 73%, 57%)
CMYKcmyk(2.1%, 73.1%, 0%, 43.1%)
CIE-LABlab(36.46, 55.56, -36.24)
CIE-LCHlch(36.46, 66.34, 326.88°)
OKLaboklab(47.63% 0.1535 -0.1006)
OKLCHoklch(47.63% 0.184 326.8)
XYZxyz(16.9914, 9.2473, 27.6725)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2791 #2A9127
analogous
#592791 #8E2791 #91275F
triadic
#8E2791 #918E27 #27918E
tetradic
#8E2791 #915927 #2A9127 #275F91
square
#8E2791 #915927 #2A9127 #275F91
split-complementary
#8E2791 #5F9127 #279159
monochromatic
#300D31 #5F1A61 #8E2791 #BD34C1 #D15FD4

Accessibility & contrast

On white

7.37
#8E2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8E2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2791
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2791#FFFFFF#000000##FFFFFF
##8E27911.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4D94
Deuteranopia (green-blind)
#415A8E
Tritanopia (blue-blind)
#92385A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2791;
/* rgb */ color: rgb(142, 39, 145);
/* oklch */ color: oklch(47.6% 0.184 326.8);
Tailwind
colors: {
  custom: {
    50: '#b26cb2',
    500: '#8e2791',
    950: '#000000',
  },
}
SCSS
$custom: #8e2791;
$custom-light: #b26cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2791",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 298.302,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47631,
    "c": 0.18355,
    "h": 326.8
  },
  "luminance": 0.09246
}

Semantic roles & 50–950 ramp

primary
#8E2791
secondary
#5DB95B
accent
#E1474B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2791

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

Preview Lab → · Contrast checker → · Palette generator →

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