#9D1687#9D1687

#9D1687 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.3% C 0.199 H 336.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#9D1687
RGBrgb(157, 22, 135)
HSLhsl(310, 75%, 35%)
HSVhsv(310, 86%, 62%)
CMYKcmyk(0%, 86%, 14%, 38.4%)
CIE-LABlab(36.92, 62.02, -29.19)
CIE-LCHlch(36.92, 68.54, 334.79°)
OKLaboklab(48.28% 0.1827 -0.0797)
OKLCHoklch(48.28% 0.199 336.4)
XYZxyz(18.5651, 9.4930, 23.7716)
Luminance0.0949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1687 #169D2C
analogous
#70169D #9D1687 #9D1643
triadic
#9D1687 #879D16 #16879D
tetradic
#9D1687 #9D7016 #169D2C #16439D
square
#9D1687 #9D7016 #169D2C #16439D
split-complementary
#9D1687 #439D16 #169D70
monochromatic
#32072B #670E59 #9D1687 #D31EB5 #E548CC

Accessibility & contrast

On white

7.25
#9D1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#9D1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1687
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1687#FFFFFF#000000##FFFFFF
##9D16871.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#4E5E84
Tritanopia (blue-blind)
#A62350
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d1687;
/* rgb */ color: rgb(157, 22, 135);
/* oklch */ color: oklch(48.3% 0.199 336.4);
Tailwind
colors: {
  custom: {
    50: '#be68aa',
    500: '#9d1687',
    950: '#000000',
  },
}
SCSS
$custom: #9d1687;
$custom-light: #be68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1687",
  "rgb": {
    "r": 157,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 309.778,
    "s": 75.419,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48284,
    "c": 0.19932,
    "h": 336.4
  },
  "luminance": 0.09491
}

Semantic roles & 50–950 ramp

primary
#9D1687
secondary
#48C75D
accent
#F25436
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1687

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

Preview Lab → · Contrast checker → · Palette generator →

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