#8A2478#8A2478

#8A2478 is a mid, vivid pink. Relative luminance 0.080; OKLCH L 45.3% C 0.165 H 336.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8A2478
RGBrgb(138, 36, 120)
HSLhsl(311, 59%, 34%)
HSVhsv(311, 74%, 54%)
CMYKcmyk(0%, 73.9%, 13%, 45.9%)
CIE-LABlab(34.03, 51.54, -24.62)
CIE-LCHlch(34.03, 57.11, 334.47°)
OKLaboklab(45.31% 0.1511 -0.0671)
OKLCHoklch(45.31% 0.165 336.1)
XYZxyz(14.5025, 8.0224, 18.5503)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2478 #248A36
analogous
#69248A #8A2478 #8A2445
triadic
#8A2478 #788A24 #24788A
tetradic
#8A2478 #8A6924 #248A36 #24458A
square
#8A2478 #8A6924 #248A36 #24458A
split-complementary
#8A2478 #458A24 #248A69
monochromatic
#290B24 #59174E #8A2478 #BB31A2 #D356BD

Accessibility & contrast

On white

8.06
#8A2478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A2478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2478
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2478#FFFFFF#000000##FFFFFF
##8A24781.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25467A
Deuteranopia (green-blind)
#495676
Tritanopia (blue-blind)
#912B4B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2478;
/* rgb */ color: rgb(138, 36, 120);
/* oklch */ color: oklch(45.3% 0.165 336.1);
Tailwind
colors: {
  custom: {
    50: '#af699f',
    500: '#8a2478',
    950: '#000000',
  },
}
SCSS
$custom: #8a2478;
$custom-light: #af699f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2478",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 310.588,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45312,
    "c": 0.16528,
    "h": 336.1
  },
  "luminance": 0.08021
}

Semantic roles & 50–950 ramp

primary
#8A2478
secondary
#53B764
accent
#E26146
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2478

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

Preview Lab → · Contrast checker → · Palette generator →

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