#8A2158#8A2158

#8A2158 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.6% C 0.149 H 353.2°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#8A2158
RGBrgb(138, 33, 88)
HSLhsl(329, 61%, 34%)
HSVhsv(329, 76%, 54%)
CMYKcmyk(0%, 76.1%, 36.2%, 45.9%)
CIE-LABlab(32.25, 48.22, -6.88)
CIE-LCHlch(32.25, 48.71, 351.88°)
OKLaboklab(43.56% 0.1479 -0.0176)
OKLCHoklch(43.56% 0.149 353.2)
XYZxyz(12.7873, 7.1971, 9.9464)
Luminance0.0720 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2158 #218A53
analogous
#87218A #8A2158 #8A2123
triadic
#8A2158 #588A21 #21588A
tetradic
#8A2158 #8A8721 #218A53 #21238A
square
#8A2158 #8A8721 #218A53 #21238A
split-complementary
#8A2158 #238A21 #218A87
monochromatic
#270919 #591539 #8A2158 #BB2D77 #D55096

Accessibility & contrast

On white

8.61
#8A2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#8A2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2158
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2158#FFFFFF#000000##FFFFFF
##8A21581.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344059
Deuteranopia (green-blind)
#525356
Tritanopia (blue-blind)
#951739
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a2158;
/* rgb */ color: rgb(138, 33, 88);
/* oklch */ color: oklch(43.6% 0.149 353.2);
Tailwind
colors: {
  custom: {
    50: '#b06787',
    500: '#8a2158',
    950: '#000000',
  },
}
SCSS
$custom: #8a2158;
$custom-light: #b06787;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2158",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 328.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43561,
    "c": 0.1489,
    "h": 353.2
  },
  "luminance": 0.07196
}

Semantic roles & 50–950 ramp

primary
#8A2158
secondary
#4EB981
accent
#E59043
background
#FBF6F8
surface
#F6EBEF
border
#D0C6CA
text
#11060B
muted
#807A7C

Preview Lab

Preview with #8A2158

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

Preview Lab → · Contrast checker → · Palette generator →

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