#8F257F#8F257F

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

Color values

HEX#8F257F
RGBrgb(143, 37, 127)
HSLhsl(309, 59%, 35%)
HSVhsv(309, 74%, 56%)
CMYKcmyk(0%, 74.1%, 11.2%, 43.9%)
CIE-LABlab(35.39, 53.52, -26.80)
CIE-LCHlch(35.39, 59.85, 333.40°)
OKLaboklab(46.58% 0.156 -0.0732)
OKLCHoklch(46.58% 0.172 334.8)
XYZxyz(15.8202, 8.6965, 20.9199)
Luminance0.0869 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F257F #258F35
analogous
#6A258F #8F257F #8F254A
triadic
#8F257F #7F8F25 #257F8F
tetradic
#8F257F #8F6A25 #258F35 #254A8F
square
#8F257F #8F6A25 #258F35 #254A8F
split-complementary
#8F257F #4A8F25 #258F6A
monochromatic
#2E0C29 #5E1854 #8F257F #C032AA #D45AC2

Accessibility & contrast

On white

7.67
#8F257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8F257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F257F
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F257F#FFFFFF#000000##FFFFFF
##8F257F1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244981
Deuteranopia (green-blind)
#4A597C
Tritanopia (blue-blind)
#962E4F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f257f;
/* rgb */ color: rgb(143, 37, 127);
/* oklch */ color: oklch(46.6% 0.172 334.8);
Tailwind
colors: {
  custom: {
    50: '#b36ba4',
    500: '#8f257f',
    950: '#000000',
  },
}
SCSS
$custom: #8f257f;
$custom-light: #b36ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f257f",
  "rgb": {
    "r": 143,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 309.057,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46581,
    "c": 0.17229,
    "h": 334.8
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#8F257F
secondary
#57B966
accent
#E25D46
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F257F

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

Preview Lab → · Contrast checker → · Palette generator →

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