#8A2874#8A2874

#8A2874 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.5% C 0.157 H 338.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8A2874
RGBrgb(138, 40, 116)
HSLhsl(313, 55%, 35%)
HSVhsv(313, 71%, 54%)
CMYKcmyk(0%, 71%, 15.9%, 45.9%)
CIE-LABlab(34.36, 49.43, -21.58)
CIE-LCHlch(34.36, 53.94, 336.41°)
OKLaboklab(45.49% 0.1461 -0.0585)
OKLCHoklch(45.49% 0.157 338.2)
XYZxyz(14.3927, 8.1831, 17.3411)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2874 #288A3E
analogous
#6F288A #8A2874 #8A2843
triadic
#8A2874 #748A28 #28748A
tetradic
#8A2874 #8A6F28 #288A3E #28438A
square
#8A2874 #8A6F28 #288A3E #28438A
split-complementary
#8A2874 #438A28 #288A6F
monochromatic
#2B0C24 #5B1A4C #8A2874 #B9369C #D05DB6

Accessibility & contrast

On white

7.97
#8A2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2874
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2874#FFFFFF#000000##FFFFFF
##8A28741.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4776
Deuteranopia (green-blind)
#4C5672
Tritanopia (blue-blind)
#922C4A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2874;
/* rgb */ color: rgb(138, 40, 116);
/* oklch */ color: oklch(45.5% 0.157 338.2);
Tailwind
colors: {
  custom: {
    50: '#af6b9c',
    500: '#8a2874',
    950: '#000000',
  },
}
SCSS
$custom: #8a2874;
$custom-light: #af6b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2874",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 313.469,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45489,
    "c": 0.15736,
    "h": 338.2
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#8A2874
secondary
#59B56D
accent
#DE6B49
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2874

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

Preview Lab → · Contrast checker → · Palette generator →

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