#8A2E78#8A2E78

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

Color values

HEX#8A2E78
RGBrgb(138, 46, 120)
HSLhsl(312, 50%, 36%)
HSVhsv(312, 67%, 54%)
CMYKcmyk(0%, 66.7%, 13%, 45.9%)
CIE-LABlab(35.43, 47.61, -22.43)
CIE-LCHlch(35.43, 52.63, 334.77°)
OKLaboklab(46.33% 0.1394 -0.0609)
OKLCHoklch(46.33% 0.152 336.4)
XYZxyz(14.8486, 8.7146, 18.6657)
Luminance0.0871 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E78 #2E8A40
analogous
#6E2E8A #8A2E78 #8A2E4A
triadic
#8A2E78 #788A2E #2E788A
tetradic
#8A2E78 #8A6E2E #2E8A40 #2E4A8A
square
#8A2E78 #8A6E2E #2E8A40 #2E4A8A
split-complementary
#8A2E78 #4A8A2E #2E8A6E
monochromatic
#2E0F28 #5C1F50 #8A2E78 #B83DA0 #CC66B8

Accessibility & contrast

On white

7.66
#8A2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A2E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E78
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E78#FFFFFF#000000##FFFFFF
##8A2E781.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4A7A
Deuteranopia (green-blind)
#4D5876
Tritanopia (blue-blind)
#91334E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2e78;
/* rgb */ color: rgb(138, 46, 120);
/* oklch */ color: oklch(46.3% 0.152 336.4);
Tailwind
colors: {
  custom: {
    50: '#af6e9f',
    500: '#8a2e78',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e78;
$custom-light: #af6e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e78",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 311.739,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46328,
    "c": 0.15216,
    "h": 336.4
  },
  "luminance": 0.08713
}

Semantic roles & 50–950 ramp

primary
#8A2E78
secondary
#61B371
accent
#DA6A4E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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