#8A278F#8A278F

#8A278F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.180 H 325.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#8A278F
RGBrgb(138, 39, 143)
HSLhsl(297, 57%, 36%)
HSVhsv(297, 73%, 56%)
CMYKcmyk(3.5%, 72.7%, 0%, 43.9%)
CIE-LABlab(35.67, 54.30, -36.31)
CIE-LCHlch(35.67, 65.32, 326.23°)
OKLaboklab(46.9% 0.149 -0.1009)
OKLCHoklch(46.9% 0.18 325.9)
XYZxyz(16.1643, 8.8386, 26.8359)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A278F #2C8F27
analogous
#56278F #8A278F #8F2760
triadic
#8A278F #8F8A27 #278F8A
tetradic
#8A278F #8F5627 #2C8F27 #27608F
square
#8A278F #8F5627 #2C8F27 #27608F
split-complementary
#8A278F #608F27 #278F56
monochromatic
#2D0D2F #5C1A5F #8A278F #B834BF #CD5DD3

Accessibility & contrast

On white

7.59
#8A278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A278F
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A278F#FFFFFF#000000##FFFFFF
##8A278F1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4C92
Deuteranopia (green-blind)
#3E588C
Tritanopia (blue-blind)
#8E3858
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a278f;
/* rgb */ color: rgb(138, 39, 143);
/* oklch */ color: oklch(46.9% 0.180 325.9);
Tailwind
colors: {
  custom: {
    50: '#af6bb0',
    500: '#8a278f',
    950: '#000000',
  },
}
SCSS
$custom: #8a278f;
$custom-light: #af6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a278f",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 297.115,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46902,
    "c": 0.17992,
    "h": 325.9
  },
  "luminance": 0.08837
}

Semantic roles & 50–950 ramp

primary
#8A278F
secondary
#5EB85A
accent
#E0474F
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A278F

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

Preview Lab → · Contrast checker → · Palette generator →

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