#8E307C#8E307C

#8E307C is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.4% C 0.155 H 336.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8E307C
RGBrgb(142, 48, 124)
HSLhsl(311, 49%, 37%)
HSVhsv(311, 66%, 56%)
CMYKcmyk(0%, 66.2%, 12.7%, 44.3%)
CIE-LABlab(36.60, 48.51, -23.06)
CIE-LCHlch(36.60, 53.71, 334.57°)
OKLaboklab(47.37% 0.1419 -0.0627)
OKLCHoklch(47.37% 0.155 336.2)
XYZxyz(15.8506, 9.3213, 20.0292)
Luminance0.0932 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E307C #308E42
analogous
#71308E #8E307C #8E304D
triadic
#8E307C #7C8E30 #307C8E
tetradic
#8E307C #8E7130 #308E42 #304D8E
square
#8E307C #8E7130 #308E42 #304D8E
split-complementary
#8E307C #4D8E30 #308E71
monochromatic
#33112C #602154 #8E307C #BC3FA4 #CD6BBA

Accessibility & contrast

On white

7.33
#8E307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8E307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E307C
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E307C#FFFFFF#000000##FFFFFF
##8E307C1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7E
Deuteranopia (green-blind)
#4F5B7A
Tritanopia (blue-blind)
#953551
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e307c;
/* rgb */ color: rgb(142, 48, 124);
/* oklch */ color: oklch(47.4% 0.155 336.2);
Tailwind
colors: {
  custom: {
    50: '#b26fa2',
    500: '#8e307c',
    950: '#000000',
  },
}
SCSS
$custom: #8e307c;
$custom-light: #b26fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e307c",
  "rgb": {
    "r": 142,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 311.489,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47371,
    "c": 0.15512,
    "h": 336.2
  },
  "luminance": 0.0932
}

Semantic roles & 50–950 ramp

primary
#8E307C
secondary
#65B475
accent
#D9694F
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E307C

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

Preview Lab → · Contrast checker → · Palette generator →

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