#8A278B#8A278B

#8A278B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.177 H 327.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#8A278B
RGBrgb(138, 39, 139)
HSLhsl(299, 56%, 35%)
HSVhsv(299, 72%, 55%)
CMYKcmyk(0.7%, 71.9%, 0%, 45.5%)
CIE-LABlab(35.44, 53.59, -34.22)
CIE-LCHlch(35.44, 63.58, 327.44°)
OKLaboklab(46.66% 0.149 -0.0948)
OKLCHoklch(46.66% 0.177 327.5)
XYZxyz(15.8667, 8.7195, 25.2684)
Luminance0.0872 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A278B #288B27
analogous
#58278B #8A278B #8B275A
triadic
#8A278B #8B8A27 #278B8A
tetradic
#8A278B #8B5827 #288B27 #275A8B
square
#8A278B #8B5827 #288B27 #275A8B
split-complementary
#8A278B #5A8B27 #278B58
monochromatic
#2B0C2B #5B1A5B #8A278B #B934BB #D05BD1

Accessibility & contrast

On white

7.65
#8A278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A278B
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A278B#FFFFFF#000000##FFFFFF
##8A278B1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#405888
Tritanopia (blue-blind)
#8E3656
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a278b;
/* rgb */ color: rgb(138, 39, 139);
/* oklch */ color: oklch(46.7% 0.177 327.5);
Tailwind
colors: {
  custom: {
    50: '#af6bad',
    500: '#8a278b',
    950: '#000000',
  },
}
SCSS
$custom: #8a278b;
$custom-light: #af6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a278b",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 299.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46659,
    "c": 0.1766,
    "h": 327.5
  },
  "luminance": 0.08718
}

Semantic roles & 50–950 ramp

primary
#8A278B
secondary
#59B658
accent
#DF484A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A278B

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

Preview Lab → · Contrast checker → · Palette generator →

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