#8A2E79#8A2E79

#8A2E79 is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.4% C 0.153 H 335.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#8A2E79
RGBrgb(138, 46, 121)
HSLhsl(311, 50%, 36%)
HSVhsv(311, 67%, 54%)
CMYKcmyk(0%, 66.7%, 12.3%, 45.9%)
CIE-LABlab(35.48, 47.77, -22.98)
CIE-LCHlch(35.48, 53.02, 334.31°)
OKLaboklab(46.38% 0.1396 -0.0625)
OKLCHoklch(46.38% 0.153 335.9)
XYZxyz(14.9096, 8.7390, 18.9870)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E79 #2E8A3F
analogous
#6D2E8A #8A2E79 #8A2E4B
triadic
#8A2E79 #798A2E #2E798A
tetradic
#8A2E79 #8A6D2E #2E8A3F #2E4B8A
square
#8A2E79 #8A6D2E #2E8A3F #2E4B8A
split-complementary
#8A2E79 #4B8A2E #2E8A6D
monochromatic
#2E0F29 #5C1F51 #8A2E79 #B83DA1 #CC66B9

Accessibility & contrast

On white

7.64
#8A2E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A2E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E79
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E79#FFFFFF#000000##FFFFFF
##8A2E791.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4B7B
Deuteranopia (green-blind)
#4D5877
Tritanopia (blue-blind)
#91344F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2e79;
/* rgb */ color: rgb(138, 46, 121);
/* oklch */ color: oklch(46.4% 0.153 335.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea0',
    500: '#8a2e79',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e79;
$custom-light: #af6ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e79",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 311.087,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46379,
    "c": 0.15293,
    "h": 335.9
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#8A2E79
secondary
#61B370
accent
#DA684E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2E79

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

Preview Lab → · Contrast checker → · Palette generator →

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