#8A287E#8A287E

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

Color values

HEX#8A287E
RGBrgb(138, 40, 126)
HSLhsl(307, 55%, 35%)
HSVhsv(307, 71%, 54%)
CMYKcmyk(0%, 71%, 8.7%, 45.9%)
CIE-LABlab(34.86, 51.02, -27.07)
CIE-LCHlch(34.86, 57.75, 332.05°)
OKLaboklab(46.01% 0.1473 -0.0742)
OKLCHoklch(46.01% 0.165 333.3)
XYZxyz(15.0060, 8.4284, 20.5711)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A287E #288A34
analogous
#65288A #8A287E #8A284D
triadic
#8A287E #7E8A28 #287E8A
tetradic
#8A287E #8A6528 #288A34 #284D8A
square
#8A287E #8A6528 #288A34 #284D8A
split-complementary
#8A287E #4D8A28 #288A65
monochromatic
#2B0C27 #5B1A53 #8A287E #B936A9 #D05DC2

Accessibility & contrast

On white

7.82
#8A287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A287E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A287E#FFFFFF#000000##FFFFFF
##8A287E1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#48577C
Tritanopia (blue-blind)
#903150
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a287e;
/* rgb */ color: rgb(138, 40, 126);
/* oklch */ color: oklch(46.0% 0.165 333.3);
Tailwind
colors: {
  custom: {
    50: '#af6ba3',
    500: '#8a287e',
    950: '#000000',
  },
}
SCSS
$custom: #8a287e;
$custom-light: #af6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a287e",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 307.347,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46012,
    "c": 0.16491,
    "h": 333.3
  },
  "luminance": 0.08427
}

Semantic roles & 50–950 ramp

primary
#8A287E
secondary
#59B564
accent
#DE5C49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A287E

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

Preview Lab → · Contrast checker → · Palette generator →

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