#9C38BD#9C38BD

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

Color values

HEX#9C38BD
RGBrgb(156, 56, 189)
HSLhsl(285, 54%, 48%)
HSVhsv(285, 70%, 74%)
CMYKcmyk(17.5%, 70.4%, 0%, 25.9%)
CIE-LABlab(43.61, 60.43, -50.98)
CIE-LCHlch(43.61, 79.06, 319.85°)
OKLaboklab(54.05% 0.1506 -0.1433)
OKLCHoklch(54.05% 0.208 316.4)
XYZxyz(24.3084, 13.5714, 49.4733)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C38BD #59BD38
analogous
#5938BD #9C38BD #BD389B
triadic
#9C38BD #BD9C38 #38BD9C
tetradic
#9C38BD #BD5938 #59BD38 #389BBD
square
#9C38BD #BD5938 #59BD38 #389BBD
split-complementary
#9C38BD #9BBD38 #38BD59
monochromatic
#4E1C5F #752A8E #9C38BD #B562D0 #CB91DE

Accessibility & contrast

On white

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

On black

3.71
#9C38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9C38BD#FFFFFF#000000##FFFFFF
##9C38BD1.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#386ABA
Tritanopia (blue-blind)
#9A5377
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9c38bd;
/* rgb */ color: rgb(156, 56, 189);
/* oklch */ color: oklch(54.0% 0.208 316.4);
Tailwind
colors: {
  custom: {
    50: '#bd77d1',
    500: '#9c38bd',
    950: '#000000',
  },
}
SCSS
$custom: #9c38bd;
$custom-light: #bd77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9c38bd",
  "rgb": {
    "r": 156,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 285.113,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54045,
    "c": 0.20793,
    "h": 316.4
  },
  "luminance": 0.1357
}

Semantic roles & 50–950 ramp

primary
#9C38BD
secondary
#98C987
accent
#DE4A6F
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9C38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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