#8A4271#8A4271

#8A4271 is a mid, moderate pink. Relative luminance 0.105; OKLCH L 48.7% C 0.115 H 342.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8A4271
RGBrgb(138, 66, 113)
HSLhsl(321, 35%, 40%)
HSVhsv(321, 52%, 54%)
CMYKcmyk(0%, 52.2%, 18.1%, 45.9%)
CIE-LABlab(38.71, 36.81, -13.01)
CIE-LCHlch(38.71, 39.04, 340.54°)
OKLaboklab(48.65% 0.1091 -0.0346)
OKLCHoklch(48.65% 0.115 342.4)
XYZxyz(15.4104, 10.4931, 16.8333)
Luminance0.1049 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4271 #428A5B
analogous
#7F428A #8A4271 #8A424D
triadic
#8A4271 #718A42 #42718A
tetradic
#8A4271 #8A7F42 #428A5B #424D8A
square
#8A4271 #8A7F42 #428A5B #424D8A
split-complementary
#8A4271 #4D8A42 #428A7F
monochromatic
#371A2D #612E4F #8A4271 #B05992 #C483AD

Accessibility & contrast

On white

6.78
#8A4271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8A4271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4271
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4271#FFFFFF#000000##FFFFFF
##8A42711.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475473
Deuteranopia (green-blind)
#5A5F6F
Tritanopia (blue-blind)
#924254
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a4271;
/* rgb */ color: rgb(138, 66, 113);
/* oklch */ color: oklch(48.7% 0.115 342.4);
Tailwind
colors: {
  custom: {
    50: '#ae7999',
    500: '#8a4271',
    950: '#000000',
  },
}
SCSS
$custom: #8a4271;
$custom-light: #ae7999;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4271",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 320.833,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.48652,
    "c": 0.11451,
    "h": 342.4
  },
  "luminance": 0.10492
}

Semantic roles & 50–950 ramp

primary
#8A4271
secondary
#79AE8C
accent
#CB835C
background
#FAF7F9
surface
#F5EEF2
border
#CFC9CC
text
#11090E
muted
#807B7E

Preview Lab

Preview with #8A4271

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

Preview Lab → · Contrast checker → · Palette generator →

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