#9A2487#9A2487

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

Color values

HEX#9A2487
RGBrgb(154, 36, 135)
HSLhsl(310, 62%, 37%)
HSVhsv(310, 77%, 60%)
CMYKcmyk(0%, 76.6%, 12.3%, 39.6%)
CIE-LABlab(37.63, 57.71, -28.11)
CIE-LCHlch(37.63, 64.19, 334.03°)
OKLaboklab(48.69% 0.1689 -0.0768)
OKLCHoklch(48.69% 0.186 335.6)
XYZxyz(18.3307, 9.8827, 23.8591)
Luminance0.0988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2487 #249A37
analogous
#72249A #9A2487 #9A244C
triadic
#9A2487 #879A24 #24879A
tetradic
#9A2487 #9A7224 #249A37 #244C9A
square
#9A2487 #9A7224 #249A37 #244C9A
split-complementary
#9A2487 #4C9A24 #249A72
monochromatic
#370D30 #68185C #9A2487 #CC30B2 #DA5FC6

Accessibility & contrast

On white

7.06
#9A2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9A2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A2487
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2487#FFFFFF#000000##FFFFFF
##9A24871.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D8A
Deuteranopia (green-blind)
#4F5F84
Tritanopia (blue-blind)
#A22E53
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a2487;
/* rgb */ color: rgb(154, 36, 135);
/* oklch */ color: oklch(48.7% 0.186 335.6);
Tailwind
colors: {
  custom: {
    50: '#bb6caa',
    500: '#9a2487',
    950: '#000000',
  },
}
SCSS
$custom: #9a2487;
$custom-light: #bb6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2487",
  "rgb": {
    "r": 154,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 309.661,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48694,
    "c": 0.18553,
    "h": 335.6
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

primary
#9A2487
secondary
#5BBF6B
accent
#E55D43
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9A2487

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

Preview Lab → · Contrast checker → · Palette generator →

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