#9D38C8#9D38C8

#9D38C8 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.218 H 313.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9D38C8
RGBrgb(157, 56, 200)
HSLhsl(282, 57%, 50%)
HSVhsv(282, 72%, 78%)
CMYKcmyk(21.5%, 72%, 0%, 21.6%)
CIE-LABlab(44.47, 62.84, -55.99)
CIE-LCHlch(44.47, 84.17, 318.30°)
OKLaboklab(54.92% 0.1507 -0.158)
OKLCHoklch(54.92% 0.218 313.7)
XYZxyz(25.7423, 14.1674, 56.0109)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38C8 #63C838
analogous
#5538C8 #9D38C8 #C838AB
triadic
#9D38C8 #C89D38 #38C89D
tetradic
#9D38C8 #C85538 #63C838 #38ABC8
square
#9D38C8 #C85538 #63C838 #38ABC8
split-complementary
#9D38C8 #ABC838 #38C855
monochromatic
#521D69 #782A99 #9D38C8 #B568D5 #CC98E3

Accessibility & contrast

On white

5.48
#9D38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9D38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38C8
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38C8#FFFFFF#000000##FFFFFF
##9D38C81.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#2D6BC5
Tritanopia (blue-blind)
#99577D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9d38c8;
/* rgb */ color: rgb(157, 56, 200);
/* oklch */ color: oklch(54.9% 0.218 313.7);
Tailwind
colors: {
  custom: {
    50: '#be78d9',
    500: '#9d38c8',
    950: '#000000',
  },
}
SCSS
$custom: #9d38c8;
$custom-light: #be78d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38c8",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 282.083,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54915,
    "c": 0.21838,
    "h": 313.7
  },
  "luminance": 0.14167
}

Semantic roles & 50–950 ramp

primary
#9D38C8
secondary
#A1CE8E
accent
#E04875
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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