#9D2EB9#9D2EB9

#9D2EB9 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.0% C 0.216 H 318.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9D2EB9
RGBrgb(157, 46, 185)
HSLhsl(288, 60%, 45%)
HSVhsv(288, 75%, 73%)
CMYKcmyk(15.1%, 75.1%, 0%, 27.5%)
CIE-LABlab(42.19, 63.59, -50.90)
CIE-LCHlch(42.19, 81.46, 321.32°)
OKLaboklab(52.99% 0.1619 -0.143)
OKLCHoklch(52.99% 0.216 318.5)
XYZxyz(23.6374, 12.6260, 47.0815)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EB9 #4AB92E
analogous
#582EB9 #9D2EB9 #B92E8F
triadic
#9D2EB9 #B99D2E #2EB99D
tetradic
#9D2EB9 #B9582E #4AB92E #2E8FB9
square
#9D2EB9 #B9582E #4AB92E #2E8FB9
split-complementary
#9D2EB9 #8FB92E #2EB958
monochromatic
#4A1657 #732288 #9D2EB9 #B951D4 #CD82E0

Accessibility & contrast

On white

5.96
#9D2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9D2EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EB9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EB9#FFFFFF#000000##FFFFFF
##9D2EB91.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#3667B6
Tritanopia (blue-blind)
#9C4B72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d2eb9;
/* rgb */ color: rgb(157, 46, 185);
/* oklch */ color: oklch(53.0% 0.216 318.5);
Tailwind
colors: {
  custom: {
    50: '#be73cf',
    500: '#9d2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #9d2eb9;
$custom-light: #be73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2eb9",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 287.914,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52985,
    "c": 0.21602,
    "h": 318.5
  },
  "luminance": 0.12625
}

Semantic roles & 50–950 ramp

primary
#9D2EB9
secondary
#8AC97A
accent
#E34464
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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