#9D38CA#9D38CA

#9D38CA is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.220 H 313.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9D38CA
RGBrgb(157, 56, 202)
HSLhsl(282, 58%, 51%)
HSVhsv(282, 72%, 79%)
CMYKcmyk(22.3%, 72.3%, 0%, 20.8%)
CIE-LABlab(44.61, 63.25, -56.93)
CIE-LCHlch(44.61, 85.10, 318.01°)
OKLaboklab(55.05% 0.1505 -0.1608)
OKLCHoklch(55.05% 0.22 313.1)
XYZxyz(25.9776, 14.2615, 57.2500)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38CA #65CA38
analogous
#5438CA #9D38CA #CA38AE
triadic
#9D38CA #CA9D38 #38CA9D
tetradic
#9D38CA #CA5438 #65CA38 #38AECA
square
#9D38CA #CA5438 #65CA38 #38AECA
split-complementary
#9D38CA #AECA38 #38CA54
monochromatic
#531D6B #78299B #9D38CA #B568D7 #CD99E4

Accessibility & contrast

On white

5.45
#9D38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9D38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38CA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38CA#FFFFFF#000000##FFFFFF
##9D38CA1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#2A6CC7
Tritanopia (blue-blind)
#98587E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9d38ca;
/* rgb */ color: rgb(157, 56, 202);
/* oklch */ color: oklch(55.1% 0.220 313.1);
Tailwind
colors: {
  custom: {
    50: '#be78db',
    500: '#9d38ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d38ca;
$custom-light: #be78db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38ca",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 281.507,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55053,
    "c": 0.22021,
    "h": 313.1
  },
  "luminance": 0.14261
}

Semantic roles & 50–950 ramp

primary
#9D38CA
secondary
#A2CF8E
accent
#E14776
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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