#9D38AF#9D38AF

#9D38AF is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.3% C 0.196 H 321.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9D38AF
RGBrgb(157, 56, 175)
HSLhsl(291, 52%, 45%)
HSVhsv(291, 68%, 69%)
CMYKcmyk(10.3%, 68%, 0%, 31.4%)
CIE-LABlab(42.90, 57.94, -43.87)
CIE-LCHlch(42.90, 72.67, 322.87°)
OKLaboklab(53.29% 0.1526 -0.1225)
OKLCHoklch(53.29% 0.196 321.2)
XYZxyz(23.0558, 13.0928, 41.8619)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38AF #4AAF38
analogous
#6138AF #9D38AF #AF3886
triadic
#9D38AF #AF9D38 #38AF9D
tetradic
#9D38AF #AF6138 #4AAF38 #3886AF
square
#9D38AF #AF6138 #4AAF38 #3886AF
split-complementary
#9D38AF #86AF38 #38AF61
monochromatic
#4A1A52 #732981 #9D38AF #B95ACA #CD88D9

Accessibility & contrast

On white

5.80
#9D38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9D38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38AF
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38AF#FFFFFF#000000##FFFFFF
##9D38AF1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105EB2
Deuteranopia (green-blind)
#4569AC
Tritanopia (blue-blind)
#9E4D6F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d38af;
/* rgb */ color: rgb(157, 56, 175);
/* oklch */ color: oklch(53.3% 0.196 321.2);
Tailwind
colors: {
  custom: {
    50: '#bd77c7',
    500: '#9d38af',
    950: '#000000',
  },
}
SCSS
$custom: #9d38af;
$custom-light: #bd77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38af",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 290.924,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53292,
    "c": 0.1957,
    "h": 321.2
  },
  "luminance": 0.13092
}

Semantic roles & 50–950 ramp

primary
#9D38AF
secondary
#8AC380
accent
#DB4D62
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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