#9A2587#9A2587

#9A2587 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.184 H 335.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9A2587
RGBrgb(154, 37, 135)
HSLhsl(310, 61%, 37%)
HSVhsv(310, 76%, 60%)
CMYKcmyk(0%, 76%, 12.3%, 39.6%)
CIE-LABlab(37.74, 57.39, -27.93)
CIE-LCHlch(37.74, 63.83, 334.05°)
OKLaboklab(48.77% 0.168 -0.0763)
OKLCHoklch(48.77% 0.184 335.6)
XYZxyz(18.3614, 9.9441, 23.8693)
Luminance0.0994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2587 #259A38
analogous
#73259A #9A2587 #9A254C
triadic
#9A2587 #879A25 #25879A
tetradic
#9A2587 #9A7325 #259A38 #254C9A
square
#9A2587 #9A7325 #259A38 #254C9A
split-complementary
#9A2587 #4C9A25 #259A73
monochromatic
#370D30 #69195C #9A2587 #CB31B2 #D960C5

Accessibility & contrast

On white

7.03
#9A2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9A2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A2587
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2587#FFFFFF#000000##FFFFFF
##9A25871.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E8A
Deuteranopia (green-blind)
#505F84
Tritanopia (blue-blind)
#A22E54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a2587;
/* rgb */ color: rgb(154, 37, 135);
/* oklch */ color: oklch(48.8% 0.184 335.6);
Tailwind
colors: {
  custom: {
    50: '#bb6caa',
    500: '#9a2587',
    950: '#000000',
  },
}
SCSS
$custom: #9a2587;
$custom-light: #bb6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2587",
  "rgb": {
    "r": 154,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 309.744,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.18448,
    "h": 335.6
  },
  "luminance": 0.09942
}

Semantic roles & 50–950 ramp

primary
#9A2587
secondary
#5DBE6D
accent
#E45E43
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A2587

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

Preview Lab → · Contrast checker → · Palette generator →

#9A2587 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva