#8A288C#8A288C

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

Color values

HEX#8A288C
RGBrgb(138, 40, 140)
HSLhsl(299, 56%, 35%)
HSVhsv(299, 71%, 55%)
CMYKcmyk(1.4%, 71.4%, 0%, 45.1%)
CIE-LABlab(35.63, 53.40, -34.54)
CIE-LCHlch(35.63, 63.59, 327.11°)
OKLaboklab(46.81% 0.148 -0.0957)
OKLCHoklch(46.81% 0.176 327.1)
XYZxyz(15.9734, 8.8154, 25.6661)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A288C #2A8C28
analogous
#58288C #8A288C #8C285C
triadic
#8A288C #8C8A28 #288C8A
tetradic
#8A288C #8C5828 #2A8C28 #285C8C
square
#8A288C #8C5828 #2A8C28 #285C8C
split-complementary
#8A288C #5C8C28 #288C58
monochromatic
#2C0D2D #5B1A5C #8A288C #B936BC #CF5ED1

Accessibility & contrast

On white

7.60
#8A288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A288C
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A288C#FFFFFF#000000##FFFFFF
##8A288C1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C8F
Deuteranopia (green-blind)
#405889
Tritanopia (blue-blind)
#8E3757
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a288c;
/* rgb */ color: rgb(138, 40, 140);
/* oklch */ color: oklch(46.8% 0.176 327.1);
Tailwind
colors: {
  custom: {
    50: '#af6cae',
    500: '#8a288c',
    950: '#000000',
  },
}
SCSS
$custom: #8a288c;
$custom-light: #af6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a288c",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 298.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46813,
    "c": 0.17623,
    "h": 327.1
  },
  "luminance": 0.08814
}

Semantic roles & 50–950 ramp

primary
#8A288C
secondary
#5BB65A
accent
#DF494C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A288C

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

Preview Lab → · Contrast checker → · Palette generator →

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