#8E2F8D#8E2F8D

#8E2F8D is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.2% C 0.170 H 328.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#8E2F8D
RGBrgb(142, 47, 141)
HSLhsl(301, 50%, 37%)
HSVhsv(301, 67%, 56%)
CMYKcmyk(0%, 66.9%, 0.7%, 44.3%)
CIE-LABlab(37.31, 51.80, -32.44)
CIE-LCHlch(37.31, 61.12, 327.95°)
OKLaboklab(48.18% 0.1448 -0.0896)
OKLCHoklch(48.18% 0.17 328.3)
XYZxyz(16.9794, 9.7081, 26.1737)
Luminance0.0971 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F8D #2F8E30
analogous
#602F8E #8E2F8D #8E2F5D
triadic
#8E2F8D #8D8E2F #2F8D8E
tetradic
#8E2F8D #8E602F #2F8E30 #2F5D8E
square
#8E2F8D #8E602F #2F8E30 #2F5D8E
split-complementary
#8E2F8D #5D8E2F #2F8E60
monochromatic
#321132 #60205F #8E2F8D #BC3EBB #CE6ACD

Accessibility & contrast

On white

7.14
#8E2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8E2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2F8D
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F8D#FFFFFF#000000##FFFFFF
##8E2F8D1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235090
Deuteranopia (green-blind)
#475C8A
Tritanopia (blue-blind)
#933C5A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e2f8d;
/* rgb */ color: rgb(142, 47, 141);
/* oklch */ color: oklch(48.2% 0.170 328.3);
Tailwind
colors: {
  custom: {
    50: '#b270af',
    500: '#8e2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f8d;
$custom-light: #b270af;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f8d",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 300.632,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48175,
    "c": 0.1703,
    "h": 328.3
  },
  "luminance": 0.09707
}

Semantic roles & 50–950 ramp

primary
#8E2F8D
secondary
#64B565
accent
#DA504E
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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