#8F2287#8F2287

#8F2287 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.182 H 331.3°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#8F2287
RGBrgb(143, 34, 135)
HSLhsl(304, 62%, 35%)
HSVhsv(304, 76%, 56%)
CMYKcmyk(0%, 76.2%, 5.6%, 43.9%)
CIE-LABlab(35.47, 55.79, -31.65)
CIE-LCHlch(35.47, 64.15, 330.44°)
OKLaboklab(46.77% 0.1594 -0.0872)
OKLCHoklch(46.77% 0.182 331.3)
XYZxyz(16.2729, 8.7343, 23.7458)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2287 #228F2A
analogous
#61228F #8F2287 #8F2250
triadic
#8F2287 #878F22 #22878F
tetradic
#8F2287 #8F6122 #228F2A #22508F
square
#8F2287 #8F6122 #228F2A #22508F
split-complementary
#8F2287 #508F22 #228F61
monochromatic
#2C0A2A #5E1658 #8F2287 #C02EB6 #D755CD

Accessibility & contrast

On white

7.65
#8F2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8F2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2287
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2287#FFFFFF#000000##FFFFFF
##8F22871.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184A8A
Deuteranopia (green-blind)
#455984
Tritanopia (blue-blind)
#953053
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f2287;
/* rgb */ color: rgb(143, 34, 135);
/* oklch */ color: oklch(46.8% 0.182 331.3);
Tailwind
colors: {
  custom: {
    50: '#b36aaa',
    500: '#8f2287',
    950: '#000000',
  },
}
SCSS
$custom: #8f2287;
$custom-light: #b36aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2287",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 304.404,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46773,
    "c": 0.18164,
    "h": 331.3
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#8F2287
secondary
#52BA5A
accent
#E54F43
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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