#8A387B#8A387B

#8A387B is a mid, vivid pink. Relative luminance 0.097; OKLCH L 47.7% C 0.139 H 335.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#8A387B
RGBrgb(138, 56, 123)
HSLhsl(311, 42%, 38%)
HSVhsv(311, 59%, 54%)
CMYKcmyk(0%, 59.4%, 10.9%, 45.9%)
CIE-LABlab(37.23, 43.56, -21.50)
CIE-LCHlch(37.23, 48.58, 333.72°)
OKLaboklab(47.69% 0.1265 -0.0584)
OKLCHoklch(47.69% 0.139 335.2)
XYZxyz(15.4707, 9.6628, 19.7853)
Luminance0.0966 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A387B #388A47
analogous
#70388A #8A387B #8A3852
triadic
#8A387B #7B8A38 #387B8A
tetradic
#8A387B #8A7038 #388A47 #38528A
square
#8A387B #8A7038 #388A47 #38528A
split-complementary
#8A387B #528A38 #388A70
monochromatic
#33152D #5E2654 #8A387B #B54AA2 #C775B8

Accessibility & contrast

On white

7.16
#8A387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A387B
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A387B#FFFFFF#000000##FFFFFF
##8A387B1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38507D
Deuteranopia (green-blind)
#515C79
Tritanopia (blue-blind)
#903D54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a387b;
/* rgb */ color: rgb(138, 56, 123);
/* oklch */ color: oklch(47.7% 0.139 335.2);
Tailwind
colors: {
  custom: {
    50: '#ae73a1',
    500: '#8a387b',
    950: '#000000',
  },
}
SCSS
$custom: #8a387b;
$custom-light: #ae73a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a387b",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 310.976,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47693,
    "c": 0.13933,
    "h": 335.2
  },
  "luminance": 0.09662
}

Semantic roles & 50–950 ramp

primary
#8A387B
secondary
#6EB07A
accent
#D26C56
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A387B

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

Preview Lab → · Contrast checker → · Palette generator →

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