#8A2778#8A2778

#8A2778 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.6% C 0.162 H 336.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2778
RGBrgb(138, 39, 120)
HSLhsl(311, 56%, 35%)
HSVhsv(311, 72%, 54%)
CMYKcmyk(0%, 71.7%, 13%, 45.9%)
CIE-LABlab(34.42, 50.43, -24.01)
CIE-LCHlch(34.42, 55.85, 334.55°)
OKLaboklab(45.6% 0.1478 -0.0654)
OKLCHoklch(45.6% 0.162 336.1)
XYZxyz(14.5971, 8.2117, 18.5819)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2778 #278A39
analogous
#6B278A #8A2778 #8A2747
triadic
#8A2778 #788A27 #27788A
tetradic
#8A2778 #8A6B27 #278A39 #27478A
square
#8A2778 #8A6B27 #278A39 #27478A
split-complementary
#8A2778 #478A27 #278A6B
monochromatic
#2B0C25 #5A1A4F #8A2778 #BA34A1 #D15BBB

Accessibility & contrast

On white

7.95
#8A2778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2778
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2778#FFFFFF#000000##FFFFFF
##8A27781.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#4A5676
Tritanopia (blue-blind)
#912D4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2778;
/* rgb */ color: rgb(138, 39, 120);
/* oklch */ color: oklch(45.6% 0.162 336.1);
Tailwind
colors: {
  custom: {
    50: '#af6a9f',
    500: '#8a2778',
    950: '#000000',
  },
}
SCSS
$custom: #8a2778;
$custom-light: #af6a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2778",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 310.909,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45595,
    "c": 0.16159,
    "h": 336.1
  },
  "luminance": 0.0821
}

Semantic roles & 50–950 ramp

primary
#8A2778
secondary
#57B668
accent
#DF6449
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2778

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

Preview Lab → · Contrast checker → · Palette generator →

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