#8A287D#8A287D

#8A287D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.164 H 333.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8A287D
RGBrgb(138, 40, 125)
HSLhsl(308, 55%, 35%)
HSVhsv(308, 71%, 54%)
CMYKcmyk(0%, 71%, 9.4%, 45.9%)
CIE-LABlab(34.81, 50.85, -26.53)
CIE-LCHlch(34.81, 57.36, 332.45°)
OKLaboklab(45.96% 0.1472 -0.0726)
OKLCHoklch(45.96% 0.164 333.7)
XYZxyz(14.9418, 8.4028, 20.2330)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A287D #288A35
analogous
#66288A #8A287D #8A284C
triadic
#8A287D #7D8A28 #287D8A
tetradic
#8A287D #8A6628 #288A35 #284C8A
square
#8A287D #8A6628 #288A35 #284C8A
split-complementary
#8A287D #4C8A28 #288A66
monochromatic
#2B0C27 #5B1A52 #8A287D #B936A8 #D05DC1

Accessibility & contrast

On white

7.83
#8A287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A287D
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A287D#FFFFFF#000000##FFFFFF
##8A287D1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26497F
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#90304F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a287d;
/* rgb */ color: rgb(138, 40, 125);
/* oklch */ color: oklch(46.0% 0.164 333.7);
Tailwind
colors: {
  custom: {
    50: '#af6ba3',
    500: '#8a287d',
    950: '#000000',
  },
}
SCSS
$custom: #8a287d;
$custom-light: #af6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a287d",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 307.959,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45958,
    "c": 0.16413,
    "h": 333.7
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#8A287D
secondary
#59B565
accent
#DE5D49
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A287D

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

Preview Lab → · Contrast checker → · Palette generator →

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