#8E1F9F#8E1F9F

#8E1F9F is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.9% C 0.203 H 321.8°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8E1F9F
RGBrgb(142, 31, 159)
HSLhsl(292, 67%, 37%)
HSVhsv(292, 81%, 62%)
CMYKcmyk(10.7%, 80.5%, 0%, 37.6%)
CIE-LABlab(36.43, 60.61, -44.80)
CIE-LCHlch(36.43, 75.37, 323.53°)
OKLaboklab(47.89% 0.1597 -0.1255)
OKLCHoklch(47.89% 0.203 321.8)
XYZxyz(17.9026, 9.2350, 33.6337)
Luminance0.0923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F9F #309F1F
analogous
#4E1F9F #8E1F9F #9F1F70
triadic
#8E1F9F #9F8E1F #1F9F8E
tetradic
#8E1F9F #9F4E1F #309F1F #1F709F
square
#8E1F9F #9F4E1F #309F1F #1F709F
split-complementary
#8E1F9F #709F1F #1F9F4E
monochromatic
#330B39 #60156C #8E1F9F #BC29D2 #CD5ADF

Accessibility & contrast

On white

7.38
#8E1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8E1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F9F
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F9F#FFFFFF#000000##FFFFFF
##8E1F9F1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#325A9C
Tritanopia (blue-blind)
#8F3A60
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e1f9f;
/* rgb */ color: rgb(142, 31, 159);
/* oklch */ color: oklch(47.9% 0.203 321.8);
Tailwind
colors: {
  custom: {
    50: '#b369bc',
    500: '#8e1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f9f;
$custom-light: #b369bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f9f",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 292.031,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47893,
    "c": 0.20308,
    "h": 321.8
  },
  "luminance": 0.09234
}

Semantic roles & 50–950 ramp

primary
#8E1F9F
secondary
#65C357
accent
#EA3E54
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8E1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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