#8A277B#8A277B

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

Color values

HEX#8A277B
RGBrgb(138, 39, 123)
HSLhsl(309, 56%, 35%)
HSVhsv(309, 72%, 54%)
CMYKcmyk(0%, 71.7%, 10.9%, 45.9%)
CIE-LABlab(34.57, 50.91, -25.65)
CIE-LCHlch(34.57, 57.01, 333.26°)
OKLaboklab(45.75% 0.1481 -0.0701)
OKLCHoklch(45.75% 0.164 334.7)
XYZxyz(14.7820, 8.2856, 19.5558)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A277B #278A36
analogous
#68278A #8A277B #8A274A
triadic
#8A277B #7B8A27 #277B8A
tetradic
#8A277B #8A6827 #278A36 #274A8A
square
#8A277B #8A6827 #278A36 #274A8A
split-complementary
#8A277B #4A8A27 #278A68
monochromatic
#2B0C26 #5A1A50 #8A277B #BA34A6 #D15BBF

Accessibility & contrast

On white

7.90
#8A277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A277B
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A277B#FFFFFF#000000##FFFFFF
##8A277B1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487D
Deuteranopia (green-blind)
#485779
Tritanopia (blue-blind)
#912F4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a277b;
/* rgb */ color: rgb(138, 39, 123);
/* oklch */ color: oklch(45.8% 0.164 334.7);
Tailwind
colors: {
  custom: {
    50: '#af6ba1',
    500: '#8a277b',
    950: '#000000',
  },
}
SCSS
$custom: #8a277b;
$custom-light: #af6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a277b",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 309.091,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45753,
    "c": 0.16386,
    "h": 334.7
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#8A277B
secondary
#57B665
accent
#DF5F49
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A277B

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

Preview Lab → · Contrast checker → · Palette generator →

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