#9D37AB#9D37AB

#9D37AB is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.9% C 0.193 H 322.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9D37AB
RGBrgb(157, 55, 171)
HSLhsl(293, 51%, 44%)
HSVhsv(293, 68%, 67%)
CMYKcmyk(8.2%, 67.8%, 0%, 32.9%)
CIE-LABlab(42.52, 57.60, -42.11)
CIE-LCHlch(42.52, 71.35, 323.83°)
OKLaboklab(52.95% 0.1538 -0.1174)
OKLCHoklch(52.95% 0.193 322.6)
XYZxyz(22.6208, 12.8420, 39.8074)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D37AB #45AB37
analogous
#6337AB #9D37AB #AB377F
triadic
#9D37AB #AB9D37 #37AB9D
tetradic
#9D37AB #AB6337 #45AB37 #377FAB
square
#9D37AB #AB6337 #45AB37 #377FAB
split-complementary
#9D37AB #7FAB37 #37AB63
monochromatic
#48194E #72287D #9D37AB #BB56C9 #CE85D8

Accessibility & contrast

On white

5.89
#9D37AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9D37AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D37AB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D37AB#FFFFFF#000000##FFFFFF
##9D37AB1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165DAE
Deuteranopia (green-blind)
#4768A8
Tritanopia (blue-blind)
#9F4A6D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d37ab;
/* rgb */ color: rgb(157, 55, 171);
/* oklch */ color: oklch(52.9% 0.193 322.6);
Tailwind
colors: {
  custom: {
    50: '#bd76c4',
    500: '#9d37ab',
    950: '#000000',
  },
}
SCSS
$custom: #9d37ab;
$custom-light: #bd76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d37ab",
  "rgb": {
    "r": 157,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 292.759,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52945,
    "c": 0.19343,
    "h": 322.6
  },
  "luminance": 0.12841
}

Semantic roles & 50–950 ramp

primary
#9D37AB
secondary
#85C17C
accent
#DB4D5E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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