#8F2A7D#8F2A7D

#8F2A7D is a mid, vivid pink. Relative luminance 0.090; OKLCH L 46.9% C 0.165 H 335.9°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#8F2A7D
RGBrgb(143, 42, 125)
HSLhsl(311, 55%, 36%)
HSVhsv(311, 71%, 56%)
CMYKcmyk(0%, 70.6%, 12.6%, 43.9%)
CIE-LABlab(35.94, 51.37, -24.69)
CIE-LCHlch(35.94, 57.00, 334.33°)
OKLaboklab(46.94% 0.1503 -0.0673)
OKLCHoklch(46.94% 0.165 335.9)
XYZxyz(15.8575, 8.9776, 20.2957)
Luminance0.0898 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2A7D #2A8F3C
analogous
#6F2A8F #8F2A7D #8F2A4B
triadic
#8F2A7D #7D8F2A #2A7D8F
tetradic
#8F2A7D #8F6F2A #2A8F3C #2A4B8F
square
#8F2A7D #8F6F2A #2A8F3C #2A4B8F
split-complementary
#8F2A7D #4B8F2A #2A8F6F
monochromatic
#300E2A #601C54 #8F2A7D #BE38A6 #D162BD

Accessibility & contrast

On white

7.51
#8F2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8F2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2A7D
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2A7D#FFFFFF#000000##FFFFFF
##8F2A7D1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#4D5A7B
Tritanopia (blue-blind)
#963150
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8f2a7d;
/* rgb */ color: rgb(143, 42, 125);
/* oklch */ color: oklch(46.9% 0.165 335.9);
Tailwind
colors: {
  custom: {
    50: '#b36da3',
    500: '#8f2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8f2a7d;
$custom-light: #b36da3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2a7d",
  "rgb": {
    "r": 143,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 310.693,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46944,
    "c": 0.16467,
    "h": 335.9
  },
  "luminance": 0.08976
}

Semantic roles & 50–950 ramp

primary
#8F2A7D
secondary
#5EB76E
accent
#DE644A
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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