#8E2797#8E2797

#8E2797 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.189 H 324.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8E2797
RGBrgb(142, 39, 151)
HSLhsl(295, 59%, 37%)
HSVhsv(295, 74%, 59%)
CMYKcmyk(6%, 74.2%, 0%, 40.8%)
CIE-LABlab(36.81, 56.62, -39.34)
CIE-LCHlch(36.81, 68.95, 325.21°)
OKLaboklab(48% 0.1534 -0.1096)
OKLCHoklch(48% 0.189 324.5)
XYZxyz(17.4663, 9.4373, 30.1738)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2797 #309727
analogous
#562797 #8E2797 #972768
triadic
#8E2797 #978E27 #27978E
tetradic
#8E2797 #975627 #309727 #276897
square
#8E2797 #975627 #309727 #276897
split-complementary
#8E2797 #689727 #279756
monochromatic
#330E36 #601A66 #8E2797 #BC34C8 #CD62D6

Accessibility & contrast

On white

7.27
#8E2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8E2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2797
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2797#FFFFFF#000000##FFFFFF
##8E27971.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.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: #8e2797;
/* rgb */ color: rgb(142, 39, 151);
/* oklch */ color: oklch(48.0% 0.189 324.5);
Tailwind
colors: {
  custom: {
    50: '#b36cb6',
    500: '#8e2797',
    950: '#000000',
  },
}
SCSS
$custom: #8e2797;
$custom-light: #b36cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2797",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 295.179,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48001,
    "c": 0.18851,
    "h": 324.5
  },
  "luminance": 0.09436
}

Semantic roles & 50–950 ramp

primary
#8E2797
secondary
#65BC5E
accent
#E24652
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E2797

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

Preview Lab → · Contrast checker → · Palette generator →

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