#8F237A#8F237A

#8F237A is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.1% C 0.171 H 337.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8F237A
RGBrgb(143, 35, 122)
HSLhsl(312, 61%, 35%)
HSVhsv(312, 76%, 56%)
CMYKcmyk(0%, 75.5%, 14.7%, 43.9%)
CIE-LABlab(34.90, 53.43, -24.45)
CIE-LCHlch(34.90, 58.76, 335.42°)
OKLaboklab(46.14% 0.1575 -0.0665)
OKLCHoklch(46.14% 0.171 337.1)
XYZxyz(15.4419, 8.4483, 19.2260)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F237A #238F38
analogous
#6E238F #8F237A #8F2344
triadic
#8F237A #7A8F23 #237A8F
tetradic
#8F237A #8F6E23 #238F38 #23448F
square
#8F237A #8F6E23 #238F38 #23448F
split-complementary
#8F237A #448F23 #238F6E
monochromatic
#2D0B26 #5E1750 #8F237A #C02FA4 #D657BD

Accessibility & contrast

On white

7.81
#8F237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8F237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F237A
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F237A#FFFFFF#000000##FFFFFF
##8F237A1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487C
Deuteranopia (green-blind)
#4B5877
Tritanopia (blue-blind)
#972A4C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f237a;
/* rgb */ color: rgb(143, 35, 122);
/* oklch */ color: oklch(46.1% 0.171 337.1);
Tailwind
colors: {
  custom: {
    50: '#b36aa0',
    500: '#8f237a',
    950: '#000000',
  },
}
SCSS
$custom: #8f237a;
$custom-light: #b36aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f237a",
  "rgb": {
    "r": 143,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 311.667,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46143,
    "c": 0.17094,
    "h": 337.1
  },
  "luminance": 0.08447
}

Semantic roles & 50–950 ramp

primary
#8F237A
secondary
#54BA68
accent
#E46344
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F237A

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

Preview Lab → · Contrast checker → · Palette generator →

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