#9D38CF#9D38CF

#9D38CF is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.225 H 311.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9D38CF
RGBrgb(157, 56, 207)
HSLhsl(280, 61%, 52%)
HSVhsv(280, 73%, 81%)
CMYKcmyk(24.2%, 72.9%, 0%, 18.8%)
CIE-LABlab(44.94, 64.28, -59.27)
CIE-LCHlch(44.94, 87.43, 317.32°)
OKLaboklab(55.4% 0.1498 -0.1676)
OKLCHoklch(55.4% 0.225 311.8)
XYZxyz(26.5792, 14.5021, 60.4184)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38CF #6ACF38
analogous
#5138CF #9D38CF #CF38B6
triadic
#9D38CF #CF9D38 #38CF9D
tetradic
#9D38CF #CF5138 #6ACF38 #38B6CF
square
#9D38CF #CF5138 #6ACF38 #38B6CF
split-complementary
#9D38CF #B6CF38 #38CF51
monochromatic
#551B71 #7A27A3 #9D38CF #B569DB #CE9BE7

Accessibility & contrast

On white

5.38
#9D38CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9D38CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38CF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38CF#FFFFFF#000000##FFFFFF
##9D38CF1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#226CCC
Tritanopia (blue-blind)
#975A81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d38cf;
/* rgb */ color: rgb(157, 56, 207);
/* oklch */ color: oklch(55.4% 0.225 311.8);
Tailwind
colors: {
  custom: {
    50: '#bf78de',
    500: '#9d38cf',
    950: '#000000',
  },
}
SCSS
$custom: #9d38cf;
$custom-light: #bf78de;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38cf",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 280.132,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55401,
    "c": 0.22483,
    "h": 311.8
  },
  "luminance": 0.14501
}

Semantic roles & 50–950 ramp

primary
#9D38CF
secondary
#A6D390
accent
#E44479
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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