#8A278C#8A278C

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

Color values

HEX#8A278C
RGBrgb(138, 39, 140)
HSLhsl(299, 56%, 35%)
HSVhsv(299, 72%, 55%)
CMYKcmyk(1.4%, 72.1%, 0%, 45.1%)
CIE-LABlab(35.50, 53.77, -34.74)
CIE-LCHlch(35.50, 64.01, 327.13°)
OKLaboklab(46.72% 0.149 -0.0963)
OKLCHoklch(46.72% 0.177 327.1)
XYZxyz(15.9401, 8.7489, 25.6550)
Luminance0.0875 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A278C #298C27
analogous
#58278C #8A278C #8C275B
triadic
#8A278C #8C8A27 #278C8A
tetradic
#8A278C #8C5827 #298C27 #275B8C
square
#8A278C #8C5827 #298C27 #275B8C
split-complementary
#8A278C #5B8C27 #278C58
monochromatic
#2C0C2C #5B1A5C #8A278C #B934BC #CF5CD2

Accessibility & contrast

On white

7.64
#8A278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A278C
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A278C#FFFFFF#000000##FFFFFF
##8A278C1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8F
Deuteranopia (green-blind)
#405889
Tritanopia (blue-blind)
#8E3757
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a278c;
/* rgb */ color: rgb(138, 39, 140);
/* oklch */ color: oklch(46.7% 0.177 327.1);
Tailwind
colors: {
  custom: {
    50: '#af6bae',
    500: '#8a278c',
    950: '#000000',
  },
}
SCSS
$custom: #8a278c;
$custom-light: #af6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a278c",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 298.812,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46719,
    "c": 0.17743,
    "h": 327.1
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#8A278C
secondary
#5AB758
accent
#E0484B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A278C

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

Preview Lab → · Contrast checker → · Palette generator →

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