#8A2F77#8A2F77

#8A2F77 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.4% C 0.150 H 337.0°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8A2F77
RGBrgb(138, 47, 119)
HSLhsl(313, 49%, 36%)
HSVhsv(313, 66%, 54%)
CMYKcmyk(0%, 65.9%, 13.8%, 45.9%)
CIE-LABlab(35.54, 47.02, -21.64)
CIE-LCHlch(35.54, 51.76, 335.29°)
OKLaboklab(46.39% 0.138 -0.0587)
OKLCHoklch(46.39% 0.15 337)
XYZxyz(14.8277, 8.7695, 18.3609)
Luminance0.0877 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F77 #2F8A42
analogous
#702F8A #8A2F77 #8A2F4A
triadic
#8A2F77 #778A2F #2F778A
tetradic
#8A2F77 #8A702F #2F8A42 #2F4A8A
square
#8A2F77 #8A702F #2F8A42 #2F4A8A
split-complementary
#8A2F77 #4A8A2F #2F8A70
monochromatic
#2F1028 #5C1F50 #8A2F77 #B83F9E #CC68B7

Accessibility & contrast

On white

7.63
#8A2F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A2F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F77
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F77#FFFFFF#000000##FFFFFF
##8A2F771.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314B79
Deuteranopia (green-blind)
#4E5975
Tritanopia (blue-blind)
#91344E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2f77;
/* rgb */ color: rgb(138, 47, 119);
/* oklch */ color: oklch(46.4% 0.150 337.0);
Tailwind
colors: {
  custom: {
    50: '#af6e9e',
    500: '#8a2f77',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f77;
$custom-light: #af6e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f77",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 312.527,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46391,
    "c": 0.14994,
    "h": 337
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#8A2F77
secondary
#62B373
accent
#D96C4F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2F77

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

Preview Lab → · Contrast checker → · Palette generator →

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