#8A2D71#8A2D71

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

Color values

HEX#8A2D71
RGBrgb(138, 45, 113)
HSLhsl(316, 51%, 36%)
HSVhsv(316, 67%, 54%)
CMYKcmyk(0%, 67.4%, 18.1%, 45.9%)
CIE-LABlab(34.95, 46.94, -18.78)
CIE-LCHlch(34.95, 50.56, 338.20°)
OKLaboklab(45.87% 0.1395 -0.0506)
OKLCHoklch(45.87% 0.148 340.1)
XYZxyz(14.4006, 8.4736, 16.4967)
Luminance0.0847 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D71 #2D8A46
analogous
#742D8A #8A2D71 #8A2D42
triadic
#8A2D71 #718A2D #2D718A
tetradic
#8A2D71 #8A742D #2D8A46 #2D428A
square
#8A2D71 #8A742D #2D8A46 #2D428A
split-complementary
#8A2D71 #428A2D #2D8A74
monochromatic
#2E0F25 #5C1E4B #8A2D71 #B83C97 #CD65B1

Accessibility & contrast

On white

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

On black

2.69
#8A2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A2D71#FFFFFF#000000##FFFFFF
##8A2D711.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324973
Deuteranopia (green-blind)
#4F586F
Tritanopia (blue-blind)
#922F4B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2d71;
/* rgb */ color: rgb(138, 45, 113);
/* oklch */ color: oklch(45.9% 0.148 340.1);
Tailwind
colors: {
  custom: {
    50: '#af6d9a',
    500: '#8a2d71',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d71;
$custom-light: #af6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d71",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 316.129,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45873,
    "c": 0.14836,
    "h": 340.1
  },
  "luminance": 0.08472
}

Semantic roles & 50–950 ramp

primary
#8A2D71
secondary
#60B376
accent
#DA734D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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