#8A2B78#8A2B78

#8A2B78 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.0% C 0.156 H 336.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8A2B78
RGBrgb(138, 43, 120)
HSLhsl(311, 52%, 35%)
HSVhsv(311, 69%, 54%)
CMYKcmyk(0%, 68.8%, 13%, 45.9%)
CIE-LABlab(34.98, 48.86, -23.13)
CIE-LCHlch(34.98, 54.06, 334.67°)
OKLaboklab(46% 0.1431 -0.0629)
OKLCHoklch(46% 0.156 336.3)
XYZxyz(14.7355, 8.4884, 18.6280)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B78 #2B8A3D
analogous
#6C2B8A #8A2B78 #8A2B49
triadic
#8A2B78 #788A2B #2B788A
tetradic
#8A2B78 #8A6C2B #2B8A3D #2B498A
square
#8A2B78 #8A6C2B #2B8A3D #2B498A
split-complementary
#8A2B78 #498A2B #2B8A6C
monochromatic
#2D0E27 #5B1C4F #8A2B78 #B93AA1 #CE61B9

Accessibility & contrast

On white

7.79
#8A2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B78
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B78#FFFFFF#000000##FFFFFF
##8A2B781.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497A
Deuteranopia (green-blind)
#4C5776
Tritanopia (blue-blind)
#91314D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2b78;
/* rgb */ color: rgb(138, 43, 120);
/* oklch */ color: oklch(46.0% 0.156 336.3);
Tailwind
colors: {
  custom: {
    50: '#af6c9f',
    500: '#8a2b78',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b78;
$custom-light: #af6c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b78",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 311.368,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46001,
    "c": 0.15633,
    "h": 336.3
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#8A2B78
secondary
#5DB46D
accent
#DC674C
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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