#8A277D#8A277D

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

Color values

HEX#8A277D
RGBrgb(138, 39, 125)
HSLhsl(308, 56%, 35%)
HSVhsv(308, 72%, 54%)
CMYKcmyk(0%, 71.7%, 9.4%, 45.9%)
CIE-LABlab(34.67, 51.23, -26.74)
CIE-LCHlch(34.67, 57.79, 332.44°)
OKLaboklab(45.86% 0.1483 -0.0732)
OKLCHoklch(45.86% 0.165 333.7)
XYZxyz(14.9085, 8.3362, 20.2219)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A277D #278A34
analogous
#66278A #8A277D #8A274B
triadic
#8A277D #7D8A27 #277D8A
tetradic
#8A277D #8A6627 #278A34 #274B8A
square
#8A277D #8A6627 #278A34 #274B8A
split-complementary
#8A277D #4B8A27 #278A66
monochromatic
#2B0C27 #5A1A52 #8A277D #BA34A8 #D15BC1

Accessibility & contrast

On white

7.87
#8A277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A277D
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A277D#FFFFFF#000000##FFFFFF
##8A277D1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#90304F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a277d;
/* rgb */ color: rgb(138, 39, 125);
/* oklch */ color: oklch(45.9% 0.165 333.7);
Tailwind
colors: {
  custom: {
    50: '#af6ba3',
    500: '#8a277d',
    950: '#000000',
  },
}
SCSS
$custom: #8a277d;
$custom-light: #af6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a277d",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 307.879,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45861,
    "c": 0.16539,
    "h": 333.7
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#8A277D
secondary
#57B664
accent
#DF5C49
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A277D

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

Preview Lab → · Contrast checker → · Palette generator →

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