#8F3271#8F3271

#8F3271 is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.2% C 0.145 H 342.6°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8F3271
RGBrgb(143, 50, 113)
HSLhsl(319, 48%, 38%)
HSVhsv(319, 65%, 56%)
CMYKcmyk(0%, 65%, 21%, 43.9%)
CIE-LABlab(36.58, 46.22, -16.19)
CIE-LCHlch(36.58, 48.98, 340.70°)
OKLaboklab(47.23% 0.1383 -0.0433)
OKLCHoklch(47.23% 0.145 342.6)
XYZxyz(15.4494, 9.3145, 16.6038)
Luminance0.0931 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F3271 #328F50
analogous
#7F328F #8F3271 #8F3242
triadic
#8F3271 #718F32 #32718F
tetradic
#8F3271 #8F7F32 #328F50 #32428F
square
#8F3271 #8F7F32 #328F50 #32428F
split-complementary
#8F3271 #428F32 #328F7F
monochromatic
#341229 #62224D #8F3271 #BC4295 #CD6FAE

Accessibility & contrast

On white

7.34
#8F3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8F3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F3271
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F3271#FFFFFF#000000##FFFFFF
##8F32711.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#555C6F
Tritanopia (blue-blind)
#98334D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8f3271;
/* rgb */ color: rgb(143, 50, 113);
/* oklch */ color: oklch(47.2% 0.145 342.6);
Tailwind
colors: {
  custom: {
    50: '#b3709a',
    500: '#8f3271',
    950: '#000000',
  },
}
SCSS
$custom: #8f3271;
$custom-light: #b3709a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f3271",
  "rgb": {
    "r": 143,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 319.355,
    "s": 48.187,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47233,
    "c": 0.1449,
    "h": 342.6
  },
  "luminance": 0.09313
}

Semantic roles & 50–950 ramp

primary
#8F3271
secondary
#68B481
accent
#D87C50
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8F3271

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

Preview Lab → · Contrast checker → · Palette generator →

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