#8A2979#8A2979

#8A2979 is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.8% C 0.160 H 335.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8A2979
RGBrgb(138, 41, 121)
HSLhsl(311, 54%, 35%)
HSVhsv(311, 70%, 54%)
CMYKcmyk(0%, 70.3%, 12.3%, 45.9%)
CIE-LABlab(34.74, 49.82, -24.13)
CIE-LCHlch(34.74, 55.35, 334.16°)
OKLaboklab(45.85% 0.1456 -0.0657)
OKLCHoklch(45.85% 0.16 335.7)
XYZxyz(14.7255, 8.3709, 18.9256)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2979 #298A3A
analogous
#6A298A #8A2979 #8A2949
triadic
#8A2979 #798A29 #29798A
tetradic
#8A2979 #8A6A29 #298A3A #29498A
square
#8A2979 #8A6A29 #298A3A #29498A
split-complementary
#8A2979 #498A29 #298A6A
monochromatic
#2C0D26 #5B1B50 #8A2979 #B937A2 #CF5EBB

Accessibility & contrast

On white

7.85
#8A2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2979
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2979#FFFFFF#000000##FFFFFF
##8A29791.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2979;
/* rgb */ color: rgb(138, 41, 121);
/* oklch */ color: oklch(45.8% 0.160 335.7);
Tailwind
colors: {
  custom: {
    50: '#af6ba0',
    500: '#8a2979',
    950: '#000000',
  },
}
SCSS
$custom: #8a2979;
$custom-light: #af6ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2979",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 310.515,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45846,
    "c": 0.15977,
    "h": 335.7
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#8A2979
secondary
#5AB56A
accent
#DE644A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2979

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

Preview Lab → · Contrast checker → · Palette generator →

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