#8A2777#8A2777

#8A2777 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.5% C 0.161 H 336.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8A2777
RGBrgb(138, 39, 119)
HSLhsl(312, 56%, 35%)
HSVhsv(312, 72%, 54%)
CMYKcmyk(0%, 71.7%, 13.8%, 45.9%)
CIE-LABlab(34.37, 50.28, -23.45)
CIE-LCHlch(34.37, 55.48, 334.99°)
OKLaboklab(45.54% 0.1477 -0.0638)
OKLCHoklch(45.54% 0.161 336.6)
XYZxyz(14.5368, 8.1875, 18.2639)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2777 #278A3A
analogous
#6C278A #8A2777 #8A2746
triadic
#8A2777 #778A27 #27778A
tetradic
#8A2777 #8A6C27 #278A3A #27468A
square
#8A2777 #8A6C27 #278A3A #27468A
split-complementary
#8A2777 #468A27 #278A6C
monochromatic
#2B0C25 #5A1A4E #8A2777 #BA34A0 #D15BBA

Accessibility & contrast

On white

7.96
#8A2777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2777
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2777#FFFFFF#000000##FFFFFF
##8A27771.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294779
Deuteranopia (green-blind)
#4A5675
Tritanopia (blue-blind)
#912D4B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2777;
/* rgb */ color: rgb(138, 39, 119);
/* oklch */ color: oklch(45.5% 0.161 336.6);
Tailwind
colors: {
  custom: {
    50: '#af6a9e',
    500: '#8a2777',
    950: '#000000',
  },
}
SCSS
$custom: #8a2777;
$custom-light: #af6a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2777",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 119
  },
  "hsl": {
    "h": 311.515,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45543,
    "c": 0.16085,
    "h": 336.6
  },
  "luminance": 0.08186
}

Semantic roles & 50–950 ramp

primary
#8A2777
secondary
#57B669
accent
#DF6549
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2777

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

Preview Lab → · Contrast checker → · Palette generator →

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