#8A2F78#8A2F78

#8A2F78 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.4% C 0.151 H 336.4°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8A2F78
RGBrgb(138, 47, 120)
HSLhsl(312, 49%, 36%)
HSVhsv(312, 66%, 54%)
CMYKcmyk(0%, 65.9%, 13%, 45.9%)
CIE-LABlab(35.58, 47.18, -22.19)
CIE-LCHlch(35.58, 52.14, 334.81°)
OKLaboklab(46.44% 0.1381 -0.0603)
OKLCHoklch(46.44% 0.151 336.4)
XYZxyz(14.8881, 8.7936, 18.6789)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F78 #2F8A41
analogous
#6F2F8A #8A2F78 #8A2F4B
triadic
#8A2F78 #788A2F #2F788A
tetradic
#8A2F78 #8A6F2F #2F8A41 #2F4B8A
square
#8A2F78 #8A6F2F #2F8A41 #2F4B8A
split-complementary
#8A2F78 #4B8A2F #2F8A6F
monochromatic
#2F1029 #5C1F50 #8A2F78 #B83FA0 #CC68B8

Accessibility & contrast

On white

7.61
#8A2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F78
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F78#FFFFFF#000000##FFFFFF
##8A2F781.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314B7A
Deuteranopia (green-blind)
#4D5976
Tritanopia (blue-blind)
#91344F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2f78;
/* rgb */ color: rgb(138, 47, 120);
/* oklch */ color: oklch(46.4% 0.151 336.4);
Tailwind
colors: {
  custom: {
    50: '#af6e9f',
    500: '#8a2f78',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f78;
$custom-light: #af6e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f78",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 311.868,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46441,
    "c": 0.15071,
    "h": 336.4
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#8A2F78
secondary
#62B372
accent
#D96A4F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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