#8F337D#8F337D

#8F337D is a mid, vivid pink. Relative luminance 0.097; OKLCH L 47.9% C 0.152 H 336.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8F337D
RGBrgb(143, 51, 125)
HSLhsl(312, 47%, 38%)
HSVhsv(312, 64%, 56%)
CMYKcmyk(0%, 64.3%, 12.6%, 43.9%)
CIE-LABlab(37.28, 47.65, -22.61)
CIE-LCHlch(37.28, 52.74, 334.62°)
OKLaboklab(47.92% 0.1393 -0.0614)
OKLCHoklch(47.92% 0.152 336.2)
XYZxyz(16.2134, 9.6893, 20.4144)
Luminance0.0969 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F337D #338F45
analogous
#73338F #8F337D #8F334F
triadic
#8F337D #7D8F33 #337D8F
tetradic
#8F337D #8F7333 #338F45 #334F8F
square
#8F337D #8F7333 #338F45 #334F8F
split-complementary
#8F337D #4F8F33 #338F73
monochromatic
#35132E #622356 #8F337D #BC43A4 #CC70BA

Accessibility & contrast

On white

7.15
#8F337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8F337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F337D
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F337D#FFFFFF#000000##FFFFFF
##8F337D1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344F7F
Deuteranopia (green-blind)
#515D7B
Tritanopia (blue-blind)
#963853
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8f337d;
/* rgb */ color: rgb(143, 51, 125);
/* oklch */ color: oklch(47.9% 0.152 336.2);
Tailwind
colors: {
  custom: {
    50: '#b371a3',
    500: '#8f337d',
    950: '#000000',
  },
}
SCSS
$custom: #8f337d;
$custom-light: #b371a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f337d",
  "rgb": {
    "r": 143,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 311.739,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47918,
    "c": 0.15222,
    "h": 336.2
  },
  "luminance": 0.09688
}

Semantic roles & 50–950 ramp

primary
#8F337D
secondary
#6AB478
accent
#D76B51
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8F337D

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

Preview Lab → · Contrast checker → · Palette generator →

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