#8A277C#8A277C

#8A277C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.165 H 334.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8A277C
RGBrgb(138, 39, 124)
HSLhsl(308, 56%, 35%)
HSVhsv(308, 72%, 54%)
CMYKcmyk(0%, 71.7%, 10.1%, 45.9%)
CIE-LABlab(34.62, 51.07, -26.20)
CIE-LCHlch(34.62, 57.40, 332.84°)
OKLaboklab(45.81% 0.1482 -0.0716)
OKLCHoklch(45.81% 0.165 334.2)
XYZxyz(14.8450, 8.3108, 19.8872)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A277C #278A35
analogous
#67278A #8A277C #8A274B
triadic
#8A277C #7C8A27 #277C8A
tetradic
#8A277C #8A6727 #278A35 #274B8A
square
#8A277C #8A6727 #278A35 #274B8A
split-complementary
#8A277C #4B8A27 #278A67
monochromatic
#2B0C26 #5A1A51 #8A277C #BA34A7 #D15BC0

Accessibility & contrast

On white

7.89
#8A277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A277C
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A277C#FFFFFF#000000##FFFFFF
##8A277C1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487E
Deuteranopia (green-blind)
#48577A
Tritanopia (blue-blind)
#912F4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a277c;
/* rgb */ color: rgb(138, 39, 124);
/* oklch */ color: oklch(45.8% 0.165 334.2);
Tailwind
colors: {
  custom: {
    50: '#af6ba2',
    500: '#8a277c',
    950: '#000000',
  },
}
SCSS
$custom: #8a277c;
$custom-light: #af6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a277c",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 308.485,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45807,
    "c": 0.16463,
    "h": 334.2
  },
  "luminance": 0.0831
}

Semantic roles & 50–950 ramp

primary
#8A277C
secondary
#57B665
accent
#DF5E49
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A277C

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

Preview Lab → · Contrast checker → · Palette generator →

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