#8A2179#8A2179

#8A2179 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.169 H 335.5°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#8A2179
RGBrgb(138, 33, 121)
HSLhsl(310, 61%, 34%)
HSVhsv(310, 76%, 54%)
CMYKcmyk(0%, 76.1%, 12.3%, 45.9%)
CIE-LABlab(33.72, 52.73, -25.73)
CIE-LCHlch(33.72, 58.67, 333.98°)
OKLaboklab(45.1% 0.1542 -0.0703)
OKLCHoklch(45.1% 0.169 335.5)
XYZxyz(14.4765, 7.8728, 18.8426)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2179 #218A32
analogous
#66218A #8A2179 #8A2144
triadic
#8A2179 #798A21 #21798A
tetradic
#8A2179 #8A6621 #218A32 #21448A
square
#8A2179 #8A6621 #218A32 #21448A
split-complementary
#8A2179 #448A21 #218A66
monochromatic
#270922 #59154E #8A2179 #BB2DA4 #D550C0

Accessibility & contrast

On white

8.16
#8A2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2179
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2179#FFFFFF#000000##FFFFFF
##8A21791.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457B
Deuteranopia (green-blind)
#475577
Tritanopia (blue-blind)
#91294B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a2179;
/* rgb */ color: rgb(138, 33, 121);
/* oklch */ color: oklch(45.1% 0.169 335.5);
Tailwind
colors: {
  custom: {
    50: '#b068a0',
    500: '#8a2179',
    950: '#000000',
  },
}
SCSS
$custom: #8a2179;
$custom-light: #b068a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2179",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 309.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45103,
    "c": 0.16948,
    "h": 335.5
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#8A2179
secondary
#4EB95F
accent
#E55D43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2179

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

Preview Lab → · Contrast checker → · Palette generator →

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