#9D38C6#9D38C6

#9D38C6 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.217 H 314.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9D38C6
RGBrgb(157, 56, 198)
HSLhsl(283, 56%, 50%)
HSVhsv(283, 72%, 78%)
CMYKcmyk(20.7%, 71.7%, 0%, 22.4%)
CIE-LABlab(44.34, 62.44, -55.04)
CIE-LCHlch(44.34, 83.24, 318.60°)
OKLaboklab(54.78% 0.151 -0.1552)
OKLCHoklch(54.78% 0.217 314.2)
XYZxyz(25.5101, 14.0745, 54.7880)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38C6 #61C638
analogous
#5638C6 #9D38C6 #C638A8
triadic
#9D38C6 #C69D38 #38C69D
tetradic
#9D38C6 #C65638 #61C638 #38A8C6
square
#9D38C6 #C65638 #61C638 #38A8C6
split-complementary
#9D38C6 #A8C638 #38C656
monochromatic
#511D67 #772B96 #9D38C6 #B567D4 #CC97E2

Accessibility & contrast

On white

5.50
#9D38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9D38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38C6
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38C6#FFFFFF#000000##FFFFFF
##9D38C61.005.503.815.50
#FFFFFF5.501.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#306BC3
Tritanopia (blue-blind)
#99567C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9d38c6;
/* rgb */ color: rgb(157, 56, 198);
/* oklch */ color: oklch(54.8% 0.217 314.2);
Tailwind
colors: {
  custom: {
    50: '#be78d8',
    500: '#9d38c6',
    950: '#000000',
  },
}
SCSS
$custom: #9d38c6;
$custom-light: #be78d8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38c6",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 282.676,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54779,
    "c": 0.21654,
    "h": 314.2
  },
  "luminance": 0.14074
}

Semantic roles & 50–950 ramp

primary
#9D38C6
secondary
#9FCD8D
accent
#DF4974
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130915
muted
#827B83

Preview Lab

Preview with #9D38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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