#8F2F7D#8F2F7D

#8F2F7D is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.5% C 0.158 H 336.1°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8F2F7D
RGBrgb(143, 47, 125)
HSLhsl(311, 51%, 37%)
HSVhsv(311, 67%, 56%)
CMYKcmyk(0%, 67.1%, 12.6%, 43.9%)
CIE-LABlab(36.66, 49.37, -23.57)
CIE-LCHlch(36.66, 54.71, 334.47°)
OKLaboklab(47.47% 0.1444 -0.0641)
OKLCHoklch(47.47% 0.158 336.1)
XYZxyz(16.0461, 9.3547, 20.3586)
Luminance0.0935 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2F7D #2F8F41
analogous
#712F8F #8F2F7D #8F2F4D
triadic
#8F2F7D #7D8F2F #2F7D8F
tetradic
#8F2F7D #8F712F #2F8F41 #2F4D8F
square
#8F2F7D #8F712F #2F8F41 #2F4D8F
split-complementary
#8F2F7D #4D8F2F #2F8F71
monochromatic
#33112C #612055 #8F2F7D #BD3EA5 #CE6ABB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F2F7D#FFFFFF#000000##FFFFFF
##8F2F7D1.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)
#304D7F
Deuteranopia (green-blind)
#4F5B7B
Tritanopia (blue-blind)
#963551
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8f2f7d;
/* rgb */ color: rgb(143, 47, 125);
/* oklch */ color: oklch(47.5% 0.158 336.1);
Tailwind
colors: {
  custom: {
    50: '#b36fa3',
    500: '#8f2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #8f2f7d;
$custom-light: #b36fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2f7d",
  "rgb": {
    "r": 143,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 311.25,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47465,
    "c": 0.15796,
    "h": 336.1
  },
  "luminance": 0.09353
}

Semantic roles & 50–950 ramp

primary
#8F2F7D
secondary
#65B574
accent
#DA684E
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8F2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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