#8A2276#8A2276

#8A2276 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.0% C 0.166 H 337.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#8A2276
RGBrgb(138, 34, 118)
HSLhsl(312, 60%, 34%)
HSVhsv(312, 75%, 54%)
CMYKcmyk(0%, 75.4%, 14.5%, 45.9%)
CIE-LABlab(33.68, 51.93, -23.90)
CIE-LCHlch(33.68, 57.16, 335.29°)
OKLaboklab(45.03% 0.1529 -0.065)
OKLCHoklch(45.03% 0.166 337)
XYZxyz(14.3235, 7.8567, 17.8982)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2276 #228A36
analogous
#6A228A #8A2276 #8A2242
triadic
#8A2276 #768A22 #22768A
tetradic
#8A2276 #8A6A22 #228A36 #22428A
square
#8A2276 #8A6A22 #228A36 #22428A
split-complementary
#8A2276 #428A22 #228A6A
monochromatic
#280A22 #59164C #8A2276 #BB2EA0 #D452BB

Accessibility & contrast

On white

8.17
#8A2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2276
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2276#FFFFFF#000000##FFFFFF
##8A22761.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254578
Deuteranopia (green-blind)
#495574
Tritanopia (blue-blind)
#922949
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a2276;
/* rgb */ color: rgb(138, 34, 118);
/* oklch */ color: oklch(45.0% 0.166 337.0);
Tailwind
colors: {
  custom: {
    50: '#b0689e',
    500: '#8a2276',
    950: '#000000',
  },
}
SCSS
$custom: #8a2276;
$custom-light: #b0689e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2276",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 311.538,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45029,
    "c": 0.16617,
    "h": 337
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#8A2276
secondary
#50B864
accent
#E46344
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2276

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

Preview Lab → · Contrast checker → · Palette generator →

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