#9D38BB#9D38BB

#9D38BB is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.0% C 0.206 H 317.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9D38BB
RGBrgb(157, 56, 187)
HSLhsl(286, 54%, 48%)
HSVhsv(286, 70%, 73%)
CMYKcmyk(16%, 70.1%, 0%, 26.7%)
CIE-LABlab(43.63, 60.25, -49.77)
CIE-LCHlch(43.63, 78.15, 320.44°)
OKLaboklab(54.05% 0.152 -0.1398)
OKLCHoklch(54.05% 0.207 317.4)
XYZxyz(24.2871, 13.5853, 48.3470)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38BB #56BB38
analogous
#5C38BB #9D38BB #BB3897
triadic
#9D38BB #BB9D38 #38BB9D
tetradic
#9D38BB #BB5C38 #56BB38 #3897BB
square
#9D38BB #BB5C38 #56BB38 #3897BB
split-complementary
#9D38BB #97BB38 #38BB5C
monochromatic
#4E1C5D #752A8C #9D38BB #B661D0 #CC90DE

Accessibility & contrast

On white

5.65
#9D38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9D38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38BB
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38BB#FFFFFF#000000##FFFFFF
##9D38BB1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d38bb;
/* rgb */ color: rgb(157, 56, 187);
/* oklch */ color: oklch(54.0% 0.206 317.4);
Tailwind
colors: {
  custom: {
    50: '#be77d0',
    500: '#9d38bb',
    950: '#000000',
  },
}
SCSS
$custom: #9d38bb;
$custom-light: #be77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38bb",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 286.26,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54049,
    "c": 0.2065,
    "h": 317.4
  },
  "luminance": 0.13584
}

Semantic roles & 50–950 ramp

primary
#9D38BB
secondary
#95C886
accent
#DD4B6C
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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