#8A2D72#8A2D72

#8A2D72 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 45.9% C 0.149 H 339.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#8A2D72
RGBrgb(138, 45, 114)
HSLhsl(315, 51%, 36%)
HSVhsv(315, 67%, 54%)
CMYKcmyk(0%, 67.4%, 17.4%, 45.9%)
CIE-LABlab(35.00, 47.09, -19.34)
CIE-LCHlch(35.00, 50.91, 337.68°)
OKLaboklab(45.92% 0.1397 -0.0521)
OKLCHoklch(45.92% 0.149 339.5)
XYZxyz(14.4572, 8.4963, 16.7949)
Luminance0.0849 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D72 #2D8A45
analogous
#732D8A #8A2D72 #8A2D43
triadic
#8A2D72 #728A2D #2D728A
tetradic
#8A2D72 #8A732D #2D8A45 #2D438A
square
#8A2D72 #8A732D #2D8A45 #2D438A
split-complementary
#8A2D72 #438A2D #2D8A73
monochromatic
#2E0F26 #5C1E4C #8A2D72 #B83C98 #CD65B2

Accessibility & contrast

On white

7.78
#8A2D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2D72
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D72#FFFFFF#000000##FFFFFF
##8A2D721.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324974
Deuteranopia (green-blind)
#4F5870
Tritanopia (blue-blind)
#92304B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2d72;
/* rgb */ color: rgb(138, 45, 114);
/* oklch */ color: oklch(45.9% 0.149 339.5);
Tailwind
colors: {
  custom: {
    50: '#af6d9a',
    500: '#8a2d72',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d72;
$custom-light: #af6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d72",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 315.484,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45921,
    "c": 0.14909,
    "h": 339.5
  },
  "luminance": 0.08495
}

Semantic roles & 50–950 ramp

primary
#8A2D72
secondary
#60B375
accent
#DA724D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2D72

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

Preview Lab → · Contrast checker → · Palette generator →

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