#8A2870#8A2870

#8A2870 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.3% C 0.155 H 340.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8A2870
RGBrgb(138, 40, 112)
HSLhsl(316, 55%, 35%)
HSVhsv(316, 71%, 54%)
CMYKcmyk(0%, 71%, 18.8%, 45.9%)
CIE-LABlab(34.17, 48.82, -19.34)
CIE-LCHlch(34.17, 52.52, 338.39°)
OKLaboklab(45.29% 0.1455 -0.0521)
OKLCHoklch(45.29% 0.155 340.3)
XYZxyz(14.1650, 8.0921, 16.1420)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2870 #288A42
analogous
#73288A #8A2870 #8A283F
triadic
#8A2870 #708A28 #28708A
tetradic
#8A2870 #8A7328 #288A42 #283F8A
square
#8A2870 #8A7328 #288A42 #283F8A
split-complementary
#8A2870 #3F8A28 #288A73
monochromatic
#2B0C23 #5B1A49 #8A2870 #B93697 #D05DB1

Accessibility & contrast

On white

8.02
#8A2870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A2870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2870
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2870#FFFFFF#000000##FFFFFF
##8A28701.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4672
Deuteranopia (green-blind)
#4D566E
Tritanopia (blue-blind)
#922B48
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2870;
/* rgb */ color: rgb(138, 40, 112);
/* oklch */ color: oklch(45.3% 0.155 340.3);
Tailwind
colors: {
  custom: {
    50: '#af6b99',
    500: '#8a2870',
    950: '#000000',
  },
}
SCSS
$custom: #8a2870;
$custom-light: #af6b99;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2870",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 315.918,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45291,
    "c": 0.15451,
    "h": 340.3
  },
  "luminance": 0.08091
}

Semantic roles & 50–950 ramp

primary
#8A2870
secondary
#59B571
accent
#DE7149
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2870

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

Preview Lab → · Contrast checker → · Palette generator →

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