#8A288D#8A288D

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

Color values

HEX#8A288D
RGBrgb(138, 40, 141)
HSLhsl(298, 56%, 35%)
HSVhsv(298, 72%, 55%)
CMYKcmyk(2.1%, 71.6%, 0%, 44.7%)
CIE-LABlab(35.68, 53.57, -35.06)
CIE-LCHlch(35.68, 64.03, 326.80°)
OKLaboklab(46.87% 0.148 -0.0973)
OKLCHoklch(46.87% 0.177 326.7)
XYZxyz(16.0475, 8.8450, 26.0562)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A288D #2B8D28
analogous
#57288D #8A288D #8D285D
triadic
#8A288D #8D8A28 #288D8A
tetradic
#8A288D #8D5728 #2B8D28 #285D8D
square
#8A288D #8D5728 #2B8D28 #285D8D
split-complementary
#8A288D #5D8D28 #288D57
monochromatic
#2D0D2E #5B1A5D #8A288D #B936BD #CE5ED1

Accessibility & contrast

On white

7.58
#8A288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A288D
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A288D#FFFFFF#000000##FFFFFF
##8A288D1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C90
Deuteranopia (green-blind)
#40588A
Tritanopia (blue-blind)
#8E3858
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a288d;
/* rgb */ color: rgb(138, 40, 141);
/* oklch */ color: oklch(46.9% 0.177 326.7);
Tailwind
colors: {
  custom: {
    50: '#af6caf',
    500: '#8a288d',
    950: '#000000',
  },
}
SCSS
$custom: #8a288d;
$custom-light: #af6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a288d",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 298.218,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46873,
    "c": 0.17706,
    "h": 326.7
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#8A288D
secondary
#5DB75A
accent
#DF494D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A288D

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

Preview Lab → · Contrast checker → · Palette generator →

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