#8A2277#8A2277

#8A2277 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.1% C 0.167 H 336.5°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#8A2277
RGBrgb(138, 34, 119)
HSLhsl(311, 60%, 34%)
HSVhsv(311, 75%, 54%)
CMYKcmyk(0%, 75.4%, 13.8%, 45.9%)
CIE-LABlab(33.73, 52.08, -24.45)
CIE-LCHlch(33.73, 57.53, 334.85°)
OKLaboklab(45.08% 0.153 -0.0666)
OKLCHoklch(45.08% 0.167 336.5)
XYZxyz(14.3833, 7.8806, 18.2128)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2277 #228A35
analogous
#69228A #8A2277 #8A2243
triadic
#8A2277 #778A22 #22778A
tetradic
#8A2277 #8A6922 #228A35 #22438A
square
#8A2277 #8A6922 #228A35 #22438A
split-complementary
#8A2277 #438A22 #228A69
monochromatic
#280A22 #59164D #8A2277 #BB2EA1 #D452BD

Accessibility & contrast

On white

8.15
#8A2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2277
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2277#FFFFFF#000000##FFFFFF
##8A22771.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244579
Deuteranopia (green-blind)
#485575
Tritanopia (blue-blind)
#91294A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a2277;
/* rgb */ color: rgb(138, 34, 119);
/* oklch */ color: oklch(45.1% 0.167 336.5);
Tailwind
colors: {
  custom: {
    50: '#b0689e',
    500: '#8a2277',
    950: '#000000',
  },
}
SCSS
$custom: #8a2277;
$custom-light: #b0689e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2277",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 310.962,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45082,
    "c": 0.16689,
    "h": 336.5
  },
  "luminance": 0.07879
}

Semantic roles & 50–950 ramp

primary
#8A2277
secondary
#50B863
accent
#E46144
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2277

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

Preview Lab → · Contrast checker → · Palette generator →

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