#8A277E#8A277E

#8A277E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.166 H 333.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#8A277E
RGBrgb(138, 39, 126)
HSLhsl(307, 56%, 35%)
HSVhsv(307, 72%, 54%)
CMYKcmyk(0%, 71.7%, 8.7%, 45.9%)
CIE-LABlab(34.73, 51.39, -27.28)
CIE-LCHlch(34.73, 58.19, 332.04°)
OKLaboklab(45.92% 0.1484 -0.0748)
OKLCHoklch(45.92% 0.166 333.3)
XYZxyz(14.9727, 8.3619, 20.5600)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A277E #278A33
analogous
#65278A #8A277E #8A274C
triadic
#8A277E #7E8A27 #277E8A
tetradic
#8A277E #8A6527 #278A33 #274C8A
square
#8A277E #8A6527 #278A33 #274C8A
split-complementary
#8A277E #4C8A27 #278A65
monochromatic
#2B0C27 #5A1A52 #8A277E #BA34AA #D15BC2

Accessibility & contrast

On white

7.86
#8A277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A277E
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A277E#FFFFFF#000000##FFFFFF
##8A277E1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244980
Deuteranopia (green-blind)
#47577C
Tritanopia (blue-blind)
#90304F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a277e;
/* rgb */ color: rgb(138, 39, 126);
/* oklch */ color: oklch(45.9% 0.166 333.3);
Tailwind
colors: {
  custom: {
    50: '#af6ba3',
    500: '#8a277e',
    950: '#000000',
  },
}
SCSS
$custom: #8a277e;
$custom-light: #af6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a277e",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 307.273,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.16617,
    "h": 333.3
  },
  "luminance": 0.08361
}

Semantic roles & 50–950 ramp

primary
#8A277E
secondary
#57B663
accent
#DF5B49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A277E

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

Preview Lab → · Contrast checker → · Palette generator →

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