#9D38CE#9D38CE

#9D38CE is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.224 H 312.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9D38CE
RGBrgb(157, 56, 206)
HSLhsl(280, 60%, 51%)
HSVhsv(280, 73%, 81%)
CMYKcmyk(23.8%, 72.8%, 0%, 19.2%)
CIE-LABlab(44.88, 64.07, -58.81)
CIE-LCHlch(44.88, 86.97, 317.45°)
OKLaboklab(55.33% 0.1499 -0.1663)
OKLCHoklch(55.33% 0.224 312)
XYZxyz(26.4573, 14.4534, 59.7766)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38CE #69CE38
analogous
#5238CE #9D38CE #CE38B4
triadic
#9D38CE #CE9D38 #38CE9D
tetradic
#9D38CE #CE5238 #69CE38 #38B4CE
square
#9D38CE #CE5238 #69CE38 #38B4CE
split-complementary
#9D38CE #B4CE38 #38CE52
monochromatic
#541C70 #7928A1 #9D38CE #B569DA #CD9AE6

Accessibility & contrast

On white

5.40
#9D38CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9D38CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38CE
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38CE#FFFFFF#000000##FFFFFF
##9D38CE1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#236CCB
Tritanopia (blue-blind)
#975A80
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d38ce;
/* rgb */ color: rgb(157, 56, 206);
/* oklch */ color: oklch(55.3% 0.224 312.0);
Tailwind
colors: {
  custom: {
    50: '#bf78de',
    500: '#9d38ce',
    950: '#000000',
  },
}
SCSS
$custom: #9d38ce;
$custom-light: #bf78de;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38ce",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 280.4,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5533,
    "c": 0.2239,
    "h": 312
  },
  "luminance": 0.14453
}

Semantic roles & 50–950 ramp

primary
#9D38CE
secondary
#A5D290
accent
#E44478
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D38CE

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

Preview Lab → · Contrast checker → · Palette generator →

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