#8A2987#8A2987

#8A2987 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.171 H 329.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#8A2987
RGBrgb(138, 41, 135)
HSLhsl(302, 54%, 35%)
HSVhsv(302, 70%, 54%)
CMYKcmyk(0%, 70.3%, 2.2%, 45.9%)
CIE-LABlab(35.48, 52.14, -31.69)
CIE-LCHlch(35.48, 61.02, 328.71°)
OKLaboklab(46.62% 0.1468 -0.0875)
OKLCHoklch(46.62% 0.171 329.2)
XYZxyz(15.6472, 8.7396, 23.7797)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2987 #298A2C
analogous
#5D298A #8A2987 #8A2956
triadic
#8A2987 #878A29 #29878A
tetradic
#8A2987 #8A5D29 #298A2C #29568A
square
#8A2987 #8A5D29 #298A2C #29568A
split-complementary
#8A2987 #568A29 #298A5D
monochromatic
#2C0D2B #5B1B59 #8A2987 #B937B5 #CF5ECC

Accessibility & contrast

On white

7.64
#8A2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2987
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2987#FFFFFF#000000##FFFFFF
##8A29871.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B8A
Deuteranopia (green-blind)
#445885
Tritanopia (blue-blind)
#8F3655
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2987;
/* rgb */ color: rgb(138, 41, 135);
/* oklch */ color: oklch(46.6% 0.171 329.2);
Tailwind
colors: {
  custom: {
    50: '#af6caa',
    500: '#8a2987',
    950: '#000000',
  },
}
SCSS
$custom: #8a2987;
$custom-light: #af6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2987",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 301.856,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46615,
    "c": 0.17086,
    "h": 329.2
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#8A2987
secondary
#5AB55D
accent
#DE4F4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2987

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

Preview Lab → · Contrast checker → · Palette generator →

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