#8A2174#8A2174

#8A2174 is a dark, vivid pink. Relative luminance 0.078; OKLCH L 44.8% C 0.166 H 337.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8A2174
RGBrgb(138, 33, 116)
HSLhsl(313, 61%, 34%)
HSVhsv(313, 76%, 54%)
CMYKcmyk(0%, 76.1%, 15.9%, 45.9%)
CIE-LABlab(33.46, 51.97, -22.98)
CIE-LCHlch(33.46, 56.82, 336.15°)
OKLaboklab(44.84% 0.1537 -0.0624)
OKLCHoklch(44.84% 0.166 337.9)
XYZxyz(14.1778, 7.7533, 17.2695)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2174 #218A37
analogous
#6B218A #8A2174 #8A213F
triadic
#8A2174 #748A21 #21748A
tetradic
#8A2174 #8A6B21 #218A37 #213F8A
square
#8A2174 #8A6B21 #218A37 #213F8A
split-complementary
#8A2174 #3F8A21 #218A6B
monochromatic
#270921 #59154A #8A2174 #BB2D9E #D550B9

Accessibility & contrast

On white

8.23
#8A2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2174
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2174#FFFFFF#000000##FFFFFF
##8A21741.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254476
Deuteranopia (green-blind)
#495472
Tritanopia (blue-blind)
#922748
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a2174;
/* rgb */ color: rgb(138, 33, 116);
/* oklch */ color: oklch(44.8% 0.166 337.9);
Tailwind
colors: {
  custom: {
    50: '#b0689c',
    500: '#8a2174',
    950: '#000000',
  },
}
SCSS
$custom: #8a2174;
$custom-light: #b0689c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2174",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 312.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44839,
    "c": 0.16589,
    "h": 337.9
  },
  "luminance": 0.07752
}

Semantic roles & 50–950 ramp

primary
#8A2174
secondary
#4EB965
accent
#E56543
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2174

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

Preview Lab → · Contrast checker → · Palette generator →

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