#8A2A6D#8A2A6D

#8A2A6D is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.4% C 0.150 H 342.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8A2A6D
RGBrgb(138, 42, 109)
HSLhsl(318, 53%, 35%)
HSVhsv(318, 70%, 54%)
CMYKcmyk(0%, 69.6%, 21%, 45.9%)
CIE-LABlab(34.32, 47.59, -17.21)
CIE-LCHlch(34.32, 50.60, 340.11°)
OKLaboklab(45.36% 0.1425 -0.0461)
OKLCHoklch(45.36% 0.15 342.1)
XYZxyz(14.0699, 8.1647, 15.3000)
Luminance0.0816 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A6D #2A8A47
analogous
#772A8A #8A2A6D #8A2A3D
triadic
#8A2A6D #6D8A2A #2A6D8A
tetradic
#8A2A6D #8A772A #2A8A47 #2A3D8A
square
#8A2A6D #8A772A #2A8A47 #2A3D8A
split-complementary
#8A2A6D #3D8A2A #2A8A77
monochromatic
#2C0D23 #5B1C48 #8A2A6D #B93892 #CF60AD

Accessibility & contrast

On white

7.98
#8A2A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A2A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A6D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A6D#FFFFFF#000000##FFFFFF
##8A2A6D1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32476F
Deuteranopia (green-blind)
#4F566B
Tritanopia (blue-blind)
#932B47
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2a6d;
/* rgb */ color: rgb(138, 42, 109);
/* oklch */ color: oklch(45.4% 0.150 342.1);
Tailwind
colors: {
  custom: {
    50: '#af6c97',
    500: '#8a2a6d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a6d;
$custom-light: #af6c97;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a6d",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 318.125,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45356,
    "c": 0.14976,
    "h": 342.1
  },
  "luminance": 0.08163
}

Semantic roles & 50–950 ramp

primary
#8A2A6D
secondary
#5BB476
accent
#DD774B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A2A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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