#8F2791#8F2791

#8F2791 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.184 H 327.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8F2791
RGBrgb(143, 39, 145)
HSLhsl(299, 58%, 36%)
HSVhsv(299, 73%, 57%)
CMYKcmyk(1.4%, 73.1%, 0%, 43.1%)
CIE-LABlab(36.62, 55.79, -35.97)
CIE-LCHlch(36.62, 66.38, 327.19°)
OKLaboklab(47.78% 0.1547 -0.0997)
OKLCHoklch(47.78% 0.184 327.2)
XYZxyz(17.1638, 9.3362, 27.6806)
Luminance0.0934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2791 #299127
analogous
#5A2791 #8F2791 #91275E
triadic
#8F2791 #918F27 #27918F
tetradic
#8F2791 #915A27 #299127 #275E91
square
#8F2791 #915A27 #299127 #275E91
split-complementary
#8F2791 #5E9127 #27915A
monochromatic
#300D31 #5F1A61 #8F2791 #BF34C1 #D25FD4

Accessibility & contrast

On white

7.32
#8F2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8F2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2791
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2791#FFFFFF#000000##FFFFFF
##8F27911.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104E94
Deuteranopia (green-blind)
#425B8E
Tritanopia (blue-blind)
#93385A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8f2791;
/* rgb */ color: rgb(143, 39, 145);
/* oklch */ color: oklch(47.8% 0.184 327.2);
Tailwind
colors: {
  custom: {
    50: '#b36cb2',
    500: '#8f2791',
    950: '#000000',
  },
}
SCSS
$custom: #8f2791;
$custom-light: #b36cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2791",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 298.868,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47784,
    "c": 0.18404,
    "h": 327.2
  },
  "luminance": 0.09335
}

Semantic roles & 50–950 ramp

primary
#8F2791
secondary
#5CB95B
accent
#E1474A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8F2791

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

Preview Lab → · Contrast checker → · Palette generator →

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