#8F257E#8F257E

#8F257E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.172 H 335.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8F257E
RGBrgb(143, 37, 126)
HSLhsl(310, 59%, 35%)
HSVhsv(310, 74%, 56%)
CMYKcmyk(0%, 74.1%, 11.9%, 43.9%)
CIE-LABlab(35.34, 53.36, -26.25)
CIE-LCHlch(35.34, 59.47, 333.80°)
OKLaboklab(46.53% 0.1558 -0.0717)
OKLCHoklch(46.53% 0.172 335.3)
XYZxyz(15.7554, 8.6705, 20.5784)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F257E #258F36
analogous
#6B258F #8F257E #8F2549
triadic
#8F257E #7E8F25 #257E8F
tetradic
#8F257E #8F6B25 #258F36 #25498F
square
#8F257E #8F6B25 #258F36 #25498F
split-complementary
#8F257E #498F25 #258F6B
monochromatic
#2E0C28 #5E1853 #8F257E #C032A9 #D45AC1

Accessibility & contrast

On white

7.68
#8F257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F257E
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F257E#FFFFFF#000000##FFFFFF
##8F257E1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#4A597B
Tritanopia (blue-blind)
#962D4F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f257e;
/* rgb */ color: rgb(143, 37, 126);
/* oklch */ color: oklch(46.5% 0.172 335.3);
Tailwind
colors: {
  custom: {
    50: '#b36ba3',
    500: '#8f257e',
    950: '#000000',
  },
}
SCSS
$custom: #8f257e;
$custom-light: #b36ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f257e",
  "rgb": {
    "r": 143,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 309.623,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46527,
    "c": 0.17154,
    "h": 335.3
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

primary
#8F257E
secondary
#57B967
accent
#E25F46
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F257E

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

Preview Lab → · Contrast checker → · Palette generator →

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