#8F257D#8F257D

#8F257D is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.5% C 0.171 H 335.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8F257D
RGBrgb(143, 37, 125)
HSLhsl(310, 59%, 35%)
HSVhsv(310, 74%, 56%)
CMYKcmyk(0%, 74.1%, 12.6%, 43.9%)
CIE-LABlab(35.29, 53.21, -25.71)
CIE-LCHlch(35.29, 59.09, 334.21°)
OKLaboklab(46.47% 0.1558 -0.0701)
OKLCHoklch(46.47% 0.171 335.8)
XYZxyz(15.6912, 8.6448, 20.2403)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F257D #258F37
analogous
#6C258F #8F257D #8F2548
triadic
#8F257D #7D8F25 #257D8F
tetradic
#8F257D #8F6C25 #258F37 #25488F
square
#8F257D #8F6C25 #258F37 #25488F
split-complementary
#8F257D #488F25 #258F6C
monochromatic
#2E0C28 #5E1852 #8F257D #C032A7 #D45AC0

Accessibility & contrast

On white

7.70
#8F257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8F257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F257D
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F257D#FFFFFF#000000##FFFFFF
##8F257D1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26497F
Deuteranopia (green-blind)
#4B597A
Tritanopia (blue-blind)
#962D4E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f257d;
/* rgb */ color: rgb(143, 37, 125);
/* oklch */ color: oklch(46.5% 0.171 335.8);
Tailwind
colors: {
  custom: {
    50: '#b36aa3',
    500: '#8f257d',
    950: '#000000',
  },
}
SCSS
$custom: #8f257d;
$custom-light: #b36aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f257d",
  "rgb": {
    "r": 143,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 310.189,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46474,
    "c": 0.17082,
    "h": 335.8
  },
  "luminance": 0.08643
}

Semantic roles & 50–950 ramp

primary
#8F257D
secondary
#57B967
accent
#E26046
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F257D

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

Preview Lab → · Contrast checker → · Palette generator →

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