#8A2977#8A2977

#8A2977 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.7% C 0.158 H 336.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8A2977
RGBrgb(138, 41, 119)
HSLhsl(312, 54%, 35%)
HSVhsv(312, 70%, 54%)
CMYKcmyk(0%, 70.3%, 13.8%, 45.9%)
CIE-LABlab(34.65, 49.50, -23.03)
CIE-LCHlch(34.65, 54.60, 335.06°)
OKLaboklab(45.74% 0.1454 -0.0626)
OKLCHoklch(45.74% 0.158 336.7)
XYZxyz(14.6042, 8.3223, 18.2864)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2977 #298A3C
analogous
#6D298A #8A2977 #8A2946
triadic
#8A2977 #778A29 #29778A
tetradic
#8A2977 #8A6D29 #298A3C #29468A
square
#8A2977 #8A6D29 #298A3C #29468A
split-complementary
#8A2977 #468A29 #298A6D
monochromatic
#2C0D26 #5B1B4E #8A2977 #B937A0 #CF5EB9

Accessibility & contrast

On white

7.88
#8A2977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A2977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2977
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2977#FFFFFF#000000##FFFFFF
##8A29771.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4879
Deuteranopia (green-blind)
#4B5775
Tritanopia (blue-blind)
#912F4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2977;
/* rgb */ color: rgb(138, 41, 119);
/* oklch */ color: oklch(45.7% 0.158 336.7);
Tailwind
colors: {
  custom: {
    50: '#af6b9e',
    500: '#8a2977',
    950: '#000000',
  },
}
SCSS
$custom: #8a2977;
$custom-light: #af6b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2977",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 311.753,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45742,
    "c": 0.15826,
    "h": 336.7
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#8A2977
secondary
#5AB56C
accent
#DE674A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2977

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

Preview Lab → · Contrast checker → · Palette generator →

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