#8E1FA5#8E1FA5

#8E1FA5 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.3% C 0.208 H 319.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8E1FA5
RGBrgb(142, 31, 165)
HSLhsl(290, 68%, 38%)
HSVhsv(290, 81%, 65%)
CMYKcmyk(13.9%, 81.2%, 0%, 35.3%)
CIE-LABlab(36.83, 61.70, -47.77)
CIE-LCHlch(36.83, 78.03, 322.25°)
OKLaboklab(48.3% 0.1589 -0.1342)
OKLCHoklch(48.3% 0.208 319.8)
XYZxyz(18.4360, 9.4483, 36.4426)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1FA5 #36A51F
analogous
#4B1FA5 #8E1FA5 #A51F79
triadic
#8E1FA5 #A58E1F #1FA58E
tetradic
#8E1FA5 #A54B1F #36A51F #1F79A5
square
#8E1FA5 #A54B1F #36A51F #1F79A5
split-complementary
#8E1FA5 #79A51F #1FA54B
monochromatic
#350C3E #621571 #8E1FA5 #B92AD7 #CA5EE1

Accessibility & contrast

On white

7.27
#8E1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8E1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1FA5
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1FA5#FFFFFF#000000##FFFFFF
##8E1FA51.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#2C5AA2
Tritanopia (blue-blind)
#8E3D63
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e1fa5;
/* rgb */ color: rgb(142, 31, 165);
/* oklch */ color: oklch(48.3% 0.208 319.8);
Tailwind
colors: {
  custom: {
    50: '#b36ac0',
    500: '#8e1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8e1fa5;
$custom-light: #b36ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1fa5",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 289.701,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48303,
    "c": 0.20796,
    "h": 319.8
  },
  "luminance": 0.09447
}

Semantic roles & 50–950 ramp

primary
#8E1FA5
secondary
#6DC55B
accent
#EB3D5B
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #8E1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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