#8F257A#8F257A

#8F257A is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.3% C 0.169 H 337.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8F257A
RGBrgb(143, 37, 122)
HSLhsl(312, 59%, 35%)
HSVhsv(312, 74%, 56%)
CMYKcmyk(0%, 74.1%, 14.7%, 43.9%)
CIE-LABlab(35.14, 52.75, -24.07)
CIE-LCHlch(35.14, 57.98, 335.47°)
OKLaboklab(46.32% 0.1554 -0.0654)
OKLCHoklch(46.32% 0.169 337.2)
XYZxyz(15.5024, 8.5693, 19.2462)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F257A #258F3A
analogous
#6F258F #8F257A #8F2545
triadic
#8F257A #7A8F25 #257A8F
tetradic
#8F257A #8F6F25 #258F3A #25458F
square
#8F257A #8F6F25 #258F3A #25458F
split-complementary
#8F257A #458F25 #258F6F
monochromatic
#2E0C27 #5E1851 #8F257A #C032A3 #D45ABC

Accessibility & contrast

On white

7.74
#8F257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8F257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F257A
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F257A#FFFFFF#000000##FFFFFF
##8F257A1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28487C
Deuteranopia (green-blind)
#4C5877
Tritanopia (blue-blind)
#972B4C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f257a;
/* rgb */ color: rgb(143, 37, 122);
/* oklch */ color: oklch(46.3% 0.169 337.2);
Tailwind
colors: {
  custom: {
    50: '#b36aa0',
    500: '#8f257a',
    950: '#000000',
  },
}
SCSS
$custom: #8f257a;
$custom-light: #b36aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f257a",
  "rgb": {
    "r": 143,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 311.887,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46317,
    "c": 0.16864,
    "h": 337.2
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

primary
#8F257A
secondary
#57B96A
accent
#E26546
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F257A

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

Preview Lab → · Contrast checker → · Palette generator →

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