#8A2E71#8A2E71

#8A2E71 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.0% C 0.147 H 340.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#8A2E71
RGBrgb(138, 46, 113)
HSLhsl(316, 50%, 36%)
HSVhsv(316, 67%, 54%)
CMYKcmyk(0%, 66.7%, 18.1%, 45.9%)
CIE-LABlab(35.10, 46.51, -18.54)
CIE-LCHlch(35.10, 50.07, 338.27°)
OKLaboklab(45.99% 0.1382 -0.0499)
OKLCHoklch(45.99% 0.147 340.1)
XYZxyz(14.4392, 8.5508, 16.5096)
Luminance0.0855 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E71 #2E8A47
analogous
#752E8A #8A2E71 #8A2E43
triadic
#8A2E71 #718A2E #2E718A
tetradic
#8A2E71 #8A752E #2E8A47 #2E438A
square
#8A2E71 #8A752E #2E8A47 #2E438A
split-complementary
#8A2E71 #438A2E #2E8A75
monochromatic
#2E0F26 #5C1F4B #8A2E71 #B83D97 #CC66B0

Accessibility & contrast

On white

7.75
#8A2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E71
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E71#FFFFFF#000000##FFFFFF
##8A2E711.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#50586F
Tritanopia (blue-blind)
#92304B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2e71;
/* rgb */ color: rgb(138, 46, 113);
/* oklch */ color: oklch(46.0% 0.147 340.1);
Tailwind
colors: {
  custom: {
    50: '#af6e9a',
    500: '#8a2e71',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e71;
$custom-light: #af6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e71",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 316.304,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45985,
    "c": 0.14693,
    "h": 340.1
  },
  "luminance": 0.0855
}

Semantic roles & 50–950 ramp

primary
#8A2E71
secondary
#61B377
accent
#DA744E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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