#8E2997#8E2997

#8E2997 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.186 H 324.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8E2997
RGBrgb(142, 41, 151)
HSLhsl(295, 57%, 38%)
HSVhsv(295, 73%, 59%)
CMYKcmyk(6%, 72.8%, 0%, 40.8%)
CIE-LABlab(37.06, 55.91, -38.94)
CIE-LCHlch(37.06, 68.13, 325.15°)
OKLaboklab(48.18% 0.1514 -0.1084)
OKLCHoklch(48.18% 0.186 324.4)
XYZxyz(17.5337, 9.5721, 30.1962)
Luminance0.0957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2997 #329729
analogous
#572997 #8E2997 #972969
triadic
#8E2997 #978E29 #29978E
tetradic
#8E2997 #975729 #329729 #296997
square
#8E2997 #975729 #329729 #296997
split-complementary
#8E2997 #699729 #299757
monochromatic
#330F37 #611C67 #8E2997 #BB36C7 #CC65D5

Accessibility & contrast

On white

7.21
#8E2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8E2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2997
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2997#FFFFFF#000000##FFFFFF
##8E29971.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044F9A
Deuteranopia (green-blind)
#3E5B94
Tritanopia (blue-blind)
#913C5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2997;
/* rgb */ color: rgb(142, 41, 151);
/* oklch */ color: oklch(48.2% 0.186 324.4);
Tailwind
colors: {
  custom: {
    50: '#b26db6',
    500: '#8e2997',
    950: '#000000',
  },
}
SCSS
$custom: #8e2997;
$custom-light: #b26db6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2997",
  "rgb": {
    "r": 142,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 295.091,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4818,
    "c": 0.18624,
    "h": 324.4
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#8E2997
secondary
#68BB61
accent
#E14754
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E2997

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

Preview Lab → · Contrast checker → · Palette generator →

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