#8C337B#8C337B

#8C337B is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.4% C 0.149 H 335.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8C337B
RGBrgb(140, 51, 123)
HSLhsl(311, 47%, 37%)
HSVhsv(311, 64%, 55%)
CMYKcmyk(0%, 63.6%, 12.1%, 45.1%)
CIE-LABlab(36.70, 46.47, -22.31)
CIE-LCHlch(36.70, 51.55, 334.36°)
OKLaboklab(47.36% 0.1356 -0.0606)
OKLCHoklch(47.36% 0.149 335.9)
XYZxyz(15.5744, 9.3744, 19.7242)
Luminance0.0937 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C337B #338C44
analogous
#71338C #8C337B #8C334E
triadic
#8C337B #7B8C33 #337B8C
tetradic
#8C337B #8C7133 #338C44 #334E8C
square
#8C337B #8C7133 #338C44 #334E8C
split-complementary
#8C337B #4E8C33 #338C71
monochromatic
#32122C #5F2354 #8C337B #B943A2 #CB6FB9

Accessibility & contrast

On white

7.31
#8C337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8C337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C337B
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C337B#FFFFFF#000000##FFFFFF
##8C337B1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7D
Deuteranopia (green-blind)
#505B79
Tritanopia (blue-blind)
#933852
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8c337b;
/* rgb */ color: rgb(140, 51, 123);
/* oklch */ color: oklch(47.4% 0.149 335.9);
Tailwind
colors: {
  custom: {
    50: '#b071a1',
    500: '#8c337b',
    950: '#000000',
  },
}
SCSS
$custom: #8c337b;
$custom-light: #b071a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c337b",
  "rgb": {
    "r": 140,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 311.461,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47364,
    "c": 0.14855,
    "h": 335.9
  },
  "luminance": 0.09373
}

Semantic roles & 50–950 ramp

primary
#8C337B
secondary
#68B277
accent
#D66B52
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8C337B

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

Preview Lab → · Contrast checker → · Palette generator →

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