#8A2F79#8A2F79

#8A2F79 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.5% C 0.151 H 335.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8A2F79
RGBrgb(138, 47, 121)
HSLhsl(311, 49%, 36%)
HSVhsv(311, 66%, 54%)
CMYKcmyk(0%, 65.9%, 12.3%, 45.9%)
CIE-LABlab(35.63, 47.35, -22.74)
CIE-LCHlch(35.63, 52.52, 334.34°)
OKLaboklab(46.49% 0.1383 -0.0618)
OKLCHoklch(46.49% 0.151 335.9)
XYZxyz(14.9491, 8.8180, 19.0002)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F79 #2F8A40
analogous
#6E2F8A #8A2F79 #8A2F4C
triadic
#8A2F79 #798A2F #2F798A
tetradic
#8A2F79 #8A6E2F #2F8A40 #2F4C8A
square
#8A2F79 #8A6E2F #2F8A40 #2F4C8A
split-complementary
#8A2F79 #4C8A2F #2F8A6E
monochromatic
#2F1029 #5C1F51 #8A2F79 #B83FA1 #CC68B9

Accessibility & contrast

On white

7.60
#8A2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A2F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F79
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F79#FFFFFF#000000##FFFFFF
##8A2F791.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304B7B
Deuteranopia (green-blind)
#4D5977
Tritanopia (blue-blind)
#91344F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2f79;
/* rgb */ color: rgb(138, 47, 121);
/* oklch */ color: oklch(46.5% 0.151 335.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea0',
    500: '#8a2f79',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f79;
$custom-light: #af6ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f79",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 311.209,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46491,
    "c": 0.15149,
    "h": 335.9
  },
  "luminance": 0.08817
}

Semantic roles & 50–950 ramp

primary
#8A2F79
secondary
#62B371
accent
#D9694F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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