#8A2F76#8A2F76

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

Color values

HEX#8A2F76
RGBrgb(138, 47, 118)
HSLhsl(313, 49%, 36%)
HSVhsv(313, 66%, 54%)
CMYKcmyk(0%, 65.9%, 14.5%, 45.9%)
CIE-LABlab(35.49, 46.86, -21.08)
CIE-LCHlch(35.49, 51.39, 335.78°)
OKLaboklab(46.34% 0.1378 -0.0571)
OKLCHoklch(46.34% 0.149 337.5)
XYZxyz(14.7680, 8.7456, 18.0463)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F76 #2F8A43
analogous
#712F8A #8A2F76 #8A2F49
triadic
#8A2F76 #768A2F #2F768A
tetradic
#8A2F76 #8A712F #2F8A43 #2F498A
square
#8A2F76 #8A712F #2F8A43 #2F498A
split-complementary
#8A2F76 #498A2F #2F8A71
monochromatic
#2F1028 #5C1F4F #8A2F76 #B83F9D #CC68B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2F76#FFFFFF#000000##FFFFFF
##8A2F761.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)
#324B78
Deuteranopia (green-blind)
#4E5974
Tritanopia (blue-blind)
#91334E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2f76;
/* rgb */ color: rgb(138, 47, 118);
/* oklch */ color: oklch(46.3% 0.149 337.5);
Tailwind
colors: {
  custom: {
    50: '#af6e9d',
    500: '#8a2f76',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f76;
$custom-light: #af6e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f76",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 313.187,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46342,
    "c": 0.14919,
    "h": 337.5
  },
  "luminance": 0.08744
}

Semantic roles & 50–950 ramp

primary
#8A2F76
secondary
#62B374
accent
#D96D4F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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