#8C237A#8C237A

#8C237A is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.169 H 335.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8C237A
RGBrgb(140, 35, 122)
HSLhsl(310, 60%, 34%)
HSVhsv(310, 75%, 55%)
CMYKcmyk(0%, 75%, 12.9%, 45.1%)
CIE-LABlab(34.36, 52.69, -25.32)
CIE-LCHlch(34.36, 58.46, 334.33°)
OKLaboklab(45.65% 0.1544 -0.0691)
OKLCHoklch(45.65% 0.169 335.9)
XYZxyz(14.9293, 8.1840, 19.2020)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C237A #238C35
analogous
#6A238C #8C237A #8C2346
triadic
#8C237A #7A8C23 #237A8C
tetradic
#8C237A #8C6A23 #238C35 #23468C
square
#8C237A #8C6A23 #238C35 #23468C
split-complementary
#8C237A #468C23 #238C6A
monochromatic
#2A0B25 #5B174F #8C237A #BD2FA5 #D455BF

Accessibility & contrast

On white

7.96
#8C237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8C237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C237A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C237A#FFFFFF#000000##FFFFFF
##8C237A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#495678
Tritanopia (blue-blind)
#932B4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c237a;
/* rgb */ color: rgb(140, 35, 122);
/* oklch */ color: oklch(45.7% 0.169 335.9);
Tailwind
colors: {
  custom: {
    50: '#b169a0',
    500: '#8c237a',
    950: '#000000',
  },
}
SCSS
$custom: #8c237a;
$custom-light: #b169a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c237a",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 310.286,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45654,
    "c": 0.16913,
    "h": 335.9
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#8C237A
secondary
#52B864
accent
#E36045
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8C237A

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

Preview Lab → · Contrast checker → · Palette generator →

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