#9D5199#9D5199

#9D5199 is a mid, vivid purple. Relative luminance 0.154; OKLCH L 55.3% C 0.137 H 329.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9D5199
RGBrgb(157, 81, 153)
HSLhsl(303, 32%, 47%)
HSVhsv(303, 48%, 62%)
CMYKcmyk(0%, 48.4%, 2.5%, 38.4%)
CIE-LABlab(46.12, 42.01, -25.74)
CIE-LCHlch(46.12, 49.27, 328.50°)
OKLaboklab(55.27% 0.118 -0.0703)
OKLCHoklch(55.27% 0.137 329.2)
XYZxyz(22.5965, 15.3541, 31.9042)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5199 #519D55
analogous
#7B519D #9D5199 #9D5173
triadic
#9D5199 #999D51 #51999D
tetradic
#9D5199 #9D7B51 #519D55 #51739D
square
#9D5199 #9D7B51 #519D55 #51739D
split-complementary
#9D5199 #739D51 #519D7B
monochromatic
#4C274A #753C72 #9D5199 #B774B4 #CC9CCA

Accessibility & contrast

On white

5.16
#9D5199 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9D5199 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D5199
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5199#FFFFFF#000000##FFFFFF
##9D51991.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C679B
Deuteranopia (green-blind)
#627197
Tritanopia (blue-blind)
#A2586E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d5199;
/* rgb */ color: rgb(157, 81, 153);
/* oklch */ color: oklch(55.3% 0.137 329.2);
Tailwind
colors: {
  custom: {
    50: '#bc85b7',
    500: '#9d5199',
    950: '#000000',
  },
}
SCSS
$custom: #9d5199;
$custom-light: #bc85b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5199",
  "rgb": {
    "r": 157,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 303.158,
    "s": 31.933,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55273,
    "c": 0.13737,
    "h": 329.2
  },
  "luminance": 0.15353
}

Semantic roles & 50–950 ramp

primary
#9D5199
secondary
#91B993
accent
#C86560
background
#FBF8FB
surface
#F7EFF6
border
#D0CAD0
text
#120B11
muted
#817C80

Preview Lab

Preview with #9D5199

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

Preview Lab → · Contrast checker → · Palette generator →

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