#9D38C3#9D38C3

#9D38C3 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.214 H 315.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9D38C3
RGBrgb(157, 56, 195)
HSLhsl(284, 55%, 49%)
HSVhsv(284, 71%, 76%)
CMYKcmyk(19.5%, 71.3%, 0%, 23.5%)
CIE-LABlab(44.14, 61.84, -53.62)
CIE-LCHlch(44.14, 81.84, 319.07°)
OKLaboklab(54.58% 0.1513 -0.151)
OKLCHoklch(54.58% 0.214 315.1)
XYZxyz(25.1675, 13.9375, 52.9836)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38C3 #5EC338
analogous
#5838C3 #9D38C3 #C338A4
triadic
#9D38C3 #C39D38 #38C39D
tetradic
#9D38C3 #C35838 #5EC338 #38A4C3
square
#9D38C3 #C35838 #5EC338 #38A4C3
split-complementary
#9D38C3 #A4C338 #38C358
monochromatic
#501D64 #772A93 #9D38C3 #B565D3 #CC95E1

Accessibility & contrast

On white

5.54
#9D38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9D38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38C3
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38C3#FFFFFF#000000##FFFFFF
##9D38C31.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#336BC0
Tritanopia (blue-blind)
#9A557A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9d38c3;
/* rgb */ color: rgb(157, 56, 195);
/* oklch */ color: oklch(54.6% 0.214 315.1);
Tailwind
colors: {
  custom: {
    50: '#be78d6',
    500: '#9d38c3',
    950: '#000000',
  },
}
SCSS
$custom: #9d38c3;
$custom-light: #be78d6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38c3",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 283.597,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54577,
    "c": 0.21379,
    "h": 315.1
  },
  "luminance": 0.13937
}

Semantic roles & 50–950 ramp

primary
#9D38C3
secondary
#9DCC8B
accent
#DF4972
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9D38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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