#8E1F98#8E1F98

#8E1F98 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.197 H 324.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#8E1F98
RGBrgb(142, 31, 152)
HSLhsl(295, 66%, 36%)
HSVhsv(295, 80%, 60%)
CMYKcmyk(6.6%, 79.6%, 0%, 40.4%)
CIE-LABlab(35.98, 59.37, -41.27)
CIE-LCHlch(35.98, 72.30, 325.19°)
OKLaboklab(47.43% 0.1604 -0.1152)
OKLCHoklch(47.43% 0.197 324.3)
XYZxyz(17.3123, 8.9989, 30.5248)
Luminance0.0900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F98 #29981F
analogous
#511F98 #8E1F98 #981F65
triadic
#8E1F98 #988E1F #1F988E
tetradic
#8E1F98 #98511F #29981F #1F6598
square
#8E1F98 #98511F #29981F #1F6598
split-complementary
#8E1F98 #65981F #1F9851
monochromatic
#2F0A32 #5F1565 #8E1F98 #BD29CB #D155DC

Accessibility & contrast

On white

7.50
#8E1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8E1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F98
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F98#FFFFFF#000000##FFFFFF
##8E1F981.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#385995
Tritanopia (blue-blind)
#91375C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e1f98;
/* rgb */ color: rgb(142, 31, 152);
/* oklch */ color: oklch(47.4% 0.197 324.3);
Tailwind
colors: {
  custom: {
    50: '#b369b7',
    500: '#8e1f98',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f98;
$custom-light: #b369b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f98",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 295.041,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4743,
    "c": 0.19745,
    "h": 324.3
  },
  "luminance": 0.08998
}

Semantic roles & 50–950 ramp

primary
#8E1F98
secondary
#5CC053
accent
#E93F4D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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