#8A2978#8A2978

#8A2978 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.8% C 0.159 H 336.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8A2978
RGBrgb(138, 41, 120)
HSLhsl(311, 54%, 35%)
HSVhsv(311, 70%, 54%)
CMYKcmyk(0%, 70.3%, 13%, 45.9%)
CIE-LABlab(34.69, 49.66, -23.58)
CIE-LCHlch(34.69, 54.97, 334.60°)
OKLaboklab(45.79% 0.1455 -0.0642)
OKLCHoklch(45.79% 0.159 336.2)
XYZxyz(14.6645, 8.3465, 18.6044)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2978 #298A3B
analogous
#6B298A #8A2978 #8A2947
triadic
#8A2978 #788A29 #29788A
tetradic
#8A2978 #8A6B29 #298A3B #29478A
square
#8A2978 #8A6B29 #298A3B #29478A
split-complementary
#8A2978 #478A29 #298A6B
monochromatic
#2C0D26 #5B1B4F #8A2978 #B937A1 #CF5EBA

Accessibility & contrast

On white

7.87
#8A2978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A2978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2978
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2978#FFFFFF#000000##FFFFFF
##8A29781.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A487A
Deuteranopia (green-blind)
#4B5776
Tritanopia (blue-blind)
#912F4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2978;
/* rgb */ color: rgb(138, 41, 120);
/* oklch */ color: oklch(45.8% 0.159 336.2);
Tailwind
colors: {
  custom: {
    50: '#af6b9f',
    500: '#8a2978',
    950: '#000000',
  },
}
SCSS
$custom: #8a2978;
$custom-light: #af6b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2978",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 311.134,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45794,
    "c": 0.15901,
    "h": 336.2
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#8A2978
secondary
#5AB56B
accent
#DE664A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2978

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

Preview Lab → · Contrast checker → · Palette generator →

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