#8A288B#8A288B

#8A288B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.175 H 327.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8A288B
RGBrgb(138, 40, 139)
HSLhsl(299, 55%, 35%)
HSVhsv(299, 71%, 55%)
CMYKcmyk(0.7%, 71.2%, 0%, 45.5%)
CIE-LABlab(35.57, 53.22, -34.01)
CIE-LCHlch(35.57, 63.16, 327.42°)
OKLaboklab(46.75% 0.148 -0.0942)
OKLCHoklch(46.75% 0.175 327.5)
XYZxyz(15.9000, 8.7860, 25.2795)
Luminance0.0878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A288B #298B28
analogous
#59288B #8A288B #8B285A
triadic
#8A288B #8B8A28 #288B8A
tetradic
#8A288B #8B5928 #298B28 #285A8B
square
#8A288B #8B5928 #298B28 #285A8B
split-complementary
#8A288B #5A8B28 #288B59
monochromatic
#2C0D2C #5B1A5B #8A288B #B936BB #CF5DD0

Accessibility & contrast

On white

7.62
#8A288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A288B
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A288B#FFFFFF#000000##FFFFFF
##8A288B1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C8E
Deuteranopia (green-blind)
#415888
Tritanopia (blue-blind)
#8E3757
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a288b;
/* rgb */ color: rgb(138, 40, 139);
/* oklch */ color: oklch(46.8% 0.175 327.5);
Tailwind
colors: {
  custom: {
    50: '#af6cad',
    500: '#8a288b',
    950: '#000000',
  },
}
SCSS
$custom: #8a288b;
$custom-light: #af6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a288b",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 299.394,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46753,
    "c": 0.1754,
    "h": 327.5
  },
  "luminance": 0.08785
}

Semantic roles & 50–950 ramp

primary
#8A288B
secondary
#5AB659
accent
#DF494B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A288B

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

Preview Lab → · Contrast checker → · Palette generator →

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