#8A2271#8A2271

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

Color values

HEX#8A2271
RGBrgb(138, 34, 113)
HSLhsl(314, 60%, 34%)
HSVhsv(314, 75%, 54%)
CMYKcmyk(0%, 75.4%, 18.1%, 45.9%)
CIE-LABlab(33.44, 51.18, -21.12)
CIE-LCHlch(33.44, 55.37, 337.58°)
OKLaboklab(44.77% 0.1523 -0.0571)
OKLCHoklch(44.77% 0.163 339.4)
XYZxyz(14.0343, 7.7409, 16.3746)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2271 #228A3B
analogous
#6F228A #8A2271 #8A223D
triadic
#8A2271 #718A22 #22718A
tetradic
#8A2271 #8A6F22 #228A3B #223D8A
square
#8A2271 #8A6F22 #228A3B #223D8A
split-complementary
#8A2271 #3D8A22 #228A6F
monochromatic
#280A21 #591649 #8A2271 #BB2E99 #D452B5

Accessibility & contrast

On white

8.24
#8A2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2271
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2271#FFFFFF#000000##FFFFFF
##8A22711.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2271;
/* rgb */ color: rgb(138, 34, 113);
/* oklch */ color: oklch(44.8% 0.163 339.4);
Tailwind
colors: {
  custom: {
    50: '#b0689a',
    500: '#8a2271',
    950: '#000000',
  },
}
SCSS
$custom: #8a2271;
$custom-light: #b0689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2271",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 314.423,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44772,
    "c": 0.16264,
    "h": 339.4
  },
  "luminance": 0.0774
}

Semantic roles & 50–950 ramp

primary
#8A2271
secondary
#50B869
accent
#E46B44
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2271

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

Preview Lab → · Contrast checker → · Palette generator →

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