#8A2B72#8A2B72

#8A2B72 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.7% C 0.152 H 339.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8A2B72
RGBrgb(138, 43, 114)
HSLhsl(315, 52%, 35%)
HSVhsv(315, 69%, 54%)
CMYKcmyk(0%, 68.8%, 17.4%, 45.9%)
CIE-LABlab(34.70, 47.93, -19.80)
CIE-LCHlch(34.70, 51.86, 337.55°)
OKLaboklab(45.7% 0.1422 -0.0534)
OKLCHoklch(45.7% 0.152 339.4)
XYZxyz(14.3827, 8.3472, 16.7700)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B72 #2B8A43
analogous
#722B8A #8A2B72 #8A2B42
triadic
#8A2B72 #728A2B #2B728A
tetradic
#8A2B72 #8A722B #2B8A43 #2B428A
square
#8A2B72 #8A722B #2B8A43 #2B428A
split-complementary
#8A2B72 #428A2B #2B8A72
monochromatic
#2D0E25 #5B1C4B #8A2B72 #B93A99 #CE61B3

Accessibility & contrast

On white

7.87
#8A2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B72
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B72#FFFFFF#000000##FFFFFF
##8A2B721.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304874
Deuteranopia (green-blind)
#4E5770
Tritanopia (blue-blind)
#922E4A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2b72;
/* rgb */ color: rgb(138, 43, 114);
/* oklch */ color: oklch(45.7% 0.152 339.4);
Tailwind
colors: {
  custom: {
    50: '#af6c9a',
    500: '#8a2b72',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b72;
$custom-light: #af6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b72",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 315.158,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45702,
    "c": 0.15189,
    "h": 339.4
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#8A2B72
secondary
#5DB473
accent
#DC704C
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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