#8B2271#8B2271

#8B2271 is a dark, vivid pink. Relative luminance 0.078; OKLCH L 44.9% C 0.163 H 339.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#8B2271
RGBrgb(139, 34, 113)
HSLhsl(315, 61%, 34%)
HSVhsv(315, 76%, 55%)
CMYKcmyk(0%, 75.5%, 18.7%, 45.5%)
CIE-LABlab(33.62, 51.44, -20.82)
CIE-LCHlch(33.62, 55.49, 337.96°)
OKLaboklab(44.94% 0.1533 -0.0562)
OKLCHoklch(44.94% 0.163 339.8)
XYZxyz(14.2005, 7.8267, 16.3824)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2271 #228B3C
analogous
#71228B #8B2271 #8B223D
triadic
#8B2271 #718B22 #22718B
tetradic
#8B2271 #8B7122 #228B3C #223D8B
square
#8B2271 #8B7122 #228B3C #223D8B
split-complementary
#8B2271 #3D8B22 #228B71
monochromatic
#290A21 #5A1649 #8B2271 #BC2E99 #D553B5

Accessibility & contrast

On white

8.19
#8B2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8B2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2271
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2271#FFFFFF#000000##FFFFFF
##8B22711.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294473
Deuteranopia (green-blind)
#4B556F
Tritanopia (blue-blind)
#932647
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b2271;
/* rgb */ color: rgb(139, 34, 113);
/* oklch */ color: oklch(44.9% 0.163 339.8);
Tailwind
colors: {
  custom: {
    50: '#b0689a',
    500: '#8b2271',
    950: '#000000',
  },
}
SCSS
$custom: #8b2271;
$custom-light: #b0689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2271",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 314.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44938,
    "c": 0.16328,
    "h": 339.8
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#8B2271
secondary
#50B86A
accent
#E46C44
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8B2271

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

Preview Lab → · Contrast checker → · Palette generator →

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