#8A2E77#8A2E77

#8A2E77 is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.3% C 0.151 H 336.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8A2E77
RGBrgb(138, 46, 119)
HSLhsl(312, 50%, 36%)
HSVhsv(312, 67%, 54%)
CMYKcmyk(0%, 66.7%, 13.8%, 45.9%)
CIE-LABlab(35.38, 47.45, -21.88)
CIE-LCHlch(35.38, 52.25, 335.25°)
OKLaboklab(46.28% 0.1393 -0.0594)
OKLCHoklch(46.28% 0.151 336.9)
XYZxyz(14.7882, 8.6904, 18.3478)
Luminance0.0869 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E77 #2E8A41
analogous
#6F2E8A #8A2E77 #8A2E49
triadic
#8A2E77 #778A2E #2E778A
tetradic
#8A2E77 #8A6F2E #2E8A41 #2E498A
square
#8A2E77 #8A6F2E #2E8A41 #2E498A
split-complementary
#8A2E77 #498A2E #2E8A6F
monochromatic
#2E0F28 #5C1F4F #8A2E77 #B83D9F #CC66B7

Accessibility & contrast

On white

7.67
#8A2E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A2E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E77
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E77#FFFFFF#000000##FFFFFF
##8A2E771.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304A79
Deuteranopia (green-blind)
#4D5875
Tritanopia (blue-blind)
#91334E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2e77;
/* rgb */ color: rgb(138, 46, 119);
/* oklch */ color: oklch(46.3% 0.151 336.9);
Tailwind
colors: {
  custom: {
    50: '#af6e9e',
    500: '#8a2e77',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e77;
$custom-light: #af6e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e77",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 312.391,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46278,
    "c": 0.15139,
    "h": 336.9
  },
  "luminance": 0.08689
}

Semantic roles & 50–950 ramp

primary
#8A2E77
secondary
#61B372
accent
#DA6B4E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2E77

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

Preview Lab → · Contrast checker → · Palette generator →

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