#8A277A#8A277A

#8A277A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.163 H 335.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#8A277A
RGBrgb(138, 39, 122)
HSLhsl(310, 56%, 35%)
HSVhsv(310, 72%, 54%)
CMYKcmyk(0%, 71.7%, 11.6%, 45.9%)
CIE-LABlab(34.52, 50.75, -25.10)
CIE-LCHlch(34.52, 56.62, 333.68°)
OKLaboklab(45.7% 0.148 -0.0685)
OKLCHoklch(45.7% 0.163 335.2)
XYZxyz(14.7198, 8.2607, 19.2278)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A277A #278A37
analogous
#69278A #8A277A #8A2749
triadic
#8A277A #7A8A27 #277A8A
tetradic
#8A277A #8A6927 #278A37 #27498A
square
#8A277A #8A6927 #278A37 #27498A
split-complementary
#8A277A #498A27 #278A69
monochromatic
#2B0C26 #5A1A50 #8A277A #BA34A4 #D15BBE

Accessibility & contrast

On white

7.92
#8A277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A277A
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A277A#FFFFFF#000000##FFFFFF
##8A277A1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487C
Deuteranopia (green-blind)
#495678
Tritanopia (blue-blind)
#912E4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a277a;
/* rgb */ color: rgb(138, 39, 122);
/* oklch */ color: oklch(45.7% 0.163 335.2);
Tailwind
colors: {
  custom: {
    50: '#af6ba0',
    500: '#8a277a',
    950: '#000000',
  },
}
SCSS
$custom: #8a277a;
$custom-light: #af6ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a277a",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 309.697,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.457,
    "c": 0.1631,
    "h": 335.2
  },
  "luminance": 0.08259
}

Semantic roles & 50–950 ramp

primary
#8A277A
secondary
#57B666
accent
#DF6149
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A277A

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

Preview Lab → · Contrast checker → · Palette generator →

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