#9D38BC#9D38BC

#9D38BC is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.207 H 317.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9D38BC
RGBrgb(157, 56, 188)
HSLhsl(286, 54%, 48%)
HSVhsv(286, 70%, 74%)
CMYKcmyk(16.5%, 70.2%, 0%, 26.3%)
CIE-LABlab(43.70, 60.45, -50.25)
CIE-LCHlch(43.70, 78.61, 320.26°)
OKLaboklab(54.11% 0.1519 -0.1412)
OKLCHoklch(54.11% 0.207 317.1)
XYZxyz(24.3946, 13.6283, 48.9127)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38BC #57BC38
analogous
#5B38BC #9D38BC #BC3899
triadic
#9D38BC #BC9D38 #38BC9D
tetradic
#9D38BC #BC5B38 #57BC38 #3899BC
square
#9D38BC #BC5B38 #57BC38 #3899BC
split-complementary
#9D38BC #99BC38 #38BC5B
monochromatic
#4E1C5E #762A8D #9D38BC #B661D0 #CC90DE

Accessibility & contrast

On white

5.64
#9D38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9D38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38BC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38BC#FFFFFF#000000##FFFFFF
##9D38BC1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#3B6AB9
Tritanopia (blue-blind)
#9C5276
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9d38bc;
/* rgb */ color: rgb(157, 56, 188);
/* oklch */ color: oklch(54.1% 0.207 317.1);
Tailwind
colors: {
  custom: {
    50: '#be77d1',
    500: '#9d38bc',
    950: '#000000',
  },
}
SCSS
$custom: #9d38bc;
$custom-light: #be77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38bc",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 285.909,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54114,
    "c": 0.20741,
    "h": 317.1
  },
  "luminance": 0.13627
}

Semantic roles & 50–950 ramp

primary
#9D38BC
secondary
#96C987
accent
#DD4A6D
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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