#8A288E#8A288E

#8A288E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.178 H 326.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8A288E
RGBrgb(138, 40, 142)
HSLhsl(298, 56%, 36%)
HSVhsv(298, 72%, 56%)
CMYKcmyk(2.8%, 71.8%, 0%, 44.3%)
CIE-LABlab(35.74, 53.75, -35.58)
CIE-LCHlch(35.74, 64.46, 326.50°)
OKLaboklab(46.93% 0.148 -0.0988)
OKLCHoklch(46.93% 0.178 326.3)
XYZxyz(16.1222, 8.8749, 26.4498)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A288E #2C8E28
analogous
#57288E #8A288E #8E285F
triadic
#8A288E #8E8A28 #288E8A
tetradic
#8A288E #8E5728 #2C8E28 #285F8E
square
#8A288E #8E5728 #2C8E28 #285F8E
split-complementary
#8A288E #5F8E28 #288E57
monochromatic
#2D0D2F #5C1B5E #8A288E #B835BE #CD5FD2

Accessibility & contrast

On white

7.57
#8A288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A288E
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A288E#FFFFFF#000000##FFFFFF
##8A288E1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C91
Deuteranopia (green-blind)
#3F588B
Tritanopia (blue-blind)
#8E3858
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a288e;
/* rgb */ color: rgb(138, 40, 142);
/* oklch */ color: oklch(46.9% 0.178 326.3);
Tailwind
colors: {
  custom: {
    50: '#af6caf',
    500: '#8a288e',
    950: '#000000',
  },
}
SCSS
$custom: #8a288e;
$custom-light: #af6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a288e",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 297.647,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46933,
    "c": 0.1779,
    "h": 326.3
  },
  "luminance": 0.08874
}

Semantic roles & 50–950 ramp

primary
#8A288E
secondary
#5EB75B
accent
#DF484E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A288E

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

Preview Lab → · Contrast checker → · Palette generator →

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