#8F237B#8F237B

#8F237B is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.2% C 0.172 H 336.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8F237B
RGBrgb(143, 35, 123)
HSLhsl(311, 61%, 35%)
HSVhsv(311, 76%, 56%)
CMYKcmyk(0%, 75.5%, 14%, 43.9%)
CIE-LABlab(34.95, 53.58, -24.99)
CIE-LCHlch(34.95, 59.13, 334.99°)
OKLaboklab(46.2% 0.1576 -0.0681)
OKLCHoklch(46.2% 0.172 336.6)
XYZxyz(15.5041, 8.4732, 19.5540)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F237B #238F37
analogous
#6D238F #8F237B #8F2345
triadic
#8F237B #7B8F23 #237B8F
tetradic
#8F237B #8F6D23 #238F37 #23458F
square
#8F237B #8F6D23 #238F37 #23458F
split-complementary
#8F237B #458F23 #238F6D
monochromatic
#2D0B26 #5E1751 #8F237B #C02FA5 #D657BE

Accessibility & contrast

On white

7.79
#8F237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F237B
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F237B#FFFFFF#000000##FFFFFF
##8F237B1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f237b;
/* rgb */ color: rgb(143, 35, 123);
/* oklch */ color: oklch(46.2% 0.172 336.6);
Tailwind
colors: {
  custom: {
    50: '#b36aa1',
    500: '#8f237b',
    950: '#000000',
  },
}
SCSS
$custom: #8f237b;
$custom-light: #b36aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f237b",
  "rgb": {
    "r": 143,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 311.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46195,
    "c": 0.17166,
    "h": 336.6
  },
  "luminance": 0.08472
}

Semantic roles & 50–950 ramp

primary
#8F237B
secondary
#54BA67
accent
#E46244
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F237B

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

Preview Lab → · Contrast checker → · Palette generator →

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