#9D2EB7#9D2EB7

#9D2EB7 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.9% C 0.214 H 319.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9D2EB7
RGBrgb(157, 46, 183)
HSLhsl(289, 60%, 45%)
HSVhsv(289, 75%, 72%)
CMYKcmyk(14.2%, 74.9%, 0%, 28.2%)
CIE-LABlab(42.06, 63.22, -49.93)
CIE-LCHlch(42.06, 80.56, 321.70°)
OKLaboklab(52.85% 0.1621 -0.1402)
OKLCHoklch(52.85% 0.214 319.2)
XYZxyz(23.4277, 12.5421, 45.9774)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EB7 #48B72E
analogous
#582EB7 #9D2EB7 #B72E8D
triadic
#9D2EB7 #B79D2E #2EB79D
tetradic
#9D2EB7 #B7582E #48B72E #2E8DB7
square
#9D2EB7 #B7582E #48B72E #2E8DB7
split-complementary
#9D2EB7 #8DB72E #2EB758
monochromatic
#491555 #732286 #9D2EB7 #BA4FD3 #CD80DF

Accessibility & contrast

On white

5.99
#9D2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9D2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EB7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EB7#FFFFFF#000000##FFFFFF
##9D2EB71.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3867B4
Tritanopia (blue-blind)
#9D4A71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d2eb7;
/* rgb */ color: rgb(157, 46, 183);
/* oklch */ color: oklch(52.9% 0.214 319.2);
Tailwind
colors: {
  custom: {
    50: '#be73cd',
    500: '#9d2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #9d2eb7;
$custom-light: #be73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2eb7",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 288.613,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52852,
    "c": 0.21432,
    "h": 319.2
  },
  "luminance": 0.12541
}

Semantic roles & 50–950 ramp

primary
#9D2EB7
secondary
#88C879
accent
#E34563
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9D2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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