#8E2F8B#8E2F8B

#8E2F8B is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.169 H 329.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8E2F8B
RGBrgb(142, 47, 139)
HSLhsl(302, 50%, 37%)
HSVhsv(302, 67%, 56%)
CMYKcmyk(0%, 66.9%, 2.1%, 44.3%)
CIE-LABlab(37.21, 51.45, -31.38)
CIE-LCHlch(37.21, 60.26, 328.62°)
OKLaboklab(48.06% 0.1447 -0.0865)
OKLCHoklch(48.06% 0.169 329.1)
XYZxyz(16.8319, 9.6491, 25.3970)
Luminance0.0965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F8B #2F8E32
analogous
#622F8E #8E2F8B #8E2F5B
triadic
#8E2F8B #8B8E2F #2F8B8E
tetradic
#8E2F8B #8E622F #2F8E32 #2F5B8E
square
#8E2F8B #8E622F #2F8E32 #2F5B8E
split-complementary
#8E2F8B #5B8E2F #2F8E62
monochromatic
#321131 #60205E #8E2F8B #BC3EB8 #CE6ACA

Accessibility & contrast

On white

7.17
#8E2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8E2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2F8B
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F8B#FFFFFF#000000##FFFFFF
##8E2F8B1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8E
Deuteranopia (green-blind)
#485C88
Tritanopia (blue-blind)
#933B59
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e2f8b;
/* rgb */ color: rgb(142, 47, 139);
/* oklch */ color: oklch(48.1% 0.169 329.1);
Tailwind
colors: {
  custom: {
    50: '#b26fad',
    500: '#8e2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f8b;
$custom-light: #b26fad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f8b",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 301.895,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48061,
    "c": 0.16861,
    "h": 329.1
  },
  "luminance": 0.09648
}

Semantic roles & 50–950 ramp

primary
#8E2F8B
secondary
#64B567
accent
#DA524E
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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