#9D38AD#9D38AD

#9D38AD is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.194 H 321.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9D38AD
RGBrgb(157, 56, 173)
HSLhsl(292, 51%, 45%)
HSVhsv(292, 68%, 68%)
CMYKcmyk(9.2%, 67.6%, 0%, 32.2%)
CIE-LABlab(42.79, 57.56, -42.88)
CIE-LCHlch(42.79, 71.78, 323.32°)
OKLaboklab(53.17% 0.1526 -0.1196)
OKLCHoklch(53.17% 0.194 321.9)
XYZxyz(22.8608, 13.0148, 40.8350)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38AD #48AD38
analogous
#6338AD #9D38AD #AD3882
triadic
#9D38AD #AD9D38 #38AD9D
tetradic
#9D38AD #AD6338 #48AD38 #3882AD
square
#9D38AD #AD6338 #48AD38 #3882AD
split-complementary
#9D38AD #82AD38 #38AD63
monochromatic
#491A51 #73297F #9D38AD #BA59C9 #CD87D8

Accessibility & contrast

On white

5.83
#9D38AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9D38AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38AD
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38AD#FFFFFF#000000##FFFFFF
##9D38AD1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155EB0
Deuteranopia (green-blind)
#4769AA
Tritanopia (blue-blind)
#9F4C6E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d38ad;
/* rgb */ color: rgb(157, 56, 173);
/* oklch */ color: oklch(53.2% 0.194 321.9);
Tailwind
colors: {
  custom: {
    50: '#bd77c6',
    500: '#9d38ad',
    950: '#000000',
  },
}
SCSS
$custom: #9d38ad;
$custom-light: #bd77c6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38ad",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 291.795,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.53171,
    "c": 0.19392,
    "h": 321.9
  },
  "luminance": 0.13014
}

Semantic roles & 50–950 ramp

primary
#9D38AD
secondary
#88C27F
accent
#DB4D61
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D38AD

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

Preview Lab → · Contrast checker → · Palette generator →

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