#8A1E78#8A1E78

#8A1E78 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.8% C 0.172 H 335.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#8A1E78
RGBrgb(138, 30, 120)
HSLhsl(310, 64%, 33%)
HSVhsv(310, 78%, 54%)
CMYKcmyk(0%, 78.3%, 13%, 45.9%)
CIE-LABlab(33.33, 53.54, -25.72)
CIE-LCHlch(33.33, 59.39, 334.34°)
OKLaboklab(44.81% 0.157 -0.0702)
OKLCHoklch(44.81% 0.172 335.9)
XYZxyz(14.3359, 7.6892, 18.4948)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E78 #1E8A30
analogous
#661E8A #8A1E78 #8A1E42
triadic
#8A1E78 #788A1E #1E788A
tetradic
#8A1E78 #8A661E #1E8A30 #1E428A
square
#8A1E78 #8A661E #1E8A30 #1E428A
split-complementary
#8A1E78 #428A1E #1E8A66
monochromatic
#250821 #58134C #8A1E78 #BC29A4 #D84BC0

Accessibility & contrast

On white

8.28
#8A1E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A1E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E78
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E78#FFFFFF#000000##FFFFFF
##8A1E781.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F447A
Deuteranopia (green-blind)
#465476
Tritanopia (blue-blind)
#912749
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1e78;
/* rgb */ color: rgb(138, 30, 120);
/* oklch */ color: oklch(44.8% 0.172 335.9);
Tailwind
colors: {
  custom: {
    50: '#b0679f',
    500: '#8a1e78',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e78;
$custom-light: #b0679f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e78",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 310,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44806,
    "c": 0.17198,
    "h": 335.9
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#8A1E78
secondary
#4ABA5C
accent
#E75C41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1E78

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

Preview Lab → · Contrast checker → · Palette generator →

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