#9C38CA#9C38CA

#9C38CA is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.220 H 312.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9C38CA
RGBrgb(156, 56, 202)
HSLhsl(281, 58%, 51%)
HSVhsv(281, 72%, 79%)
CMYKcmyk(22.8%, 72.3%, 0%, 20.8%)
CIE-LABlab(44.46, 63.05, -57.17)
CIE-LCHlch(44.46, 85.11, 317.80°)
OKLaboklab(54.92% 0.1492 -0.1615)
OKLCHoklch(54.92% 0.22 312.7)
XYZxyz(25.7832, 14.1613, 57.2409)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C38CA #66CA38
analogous
#5338CA #9C38CA #CA38AF
triadic
#9C38CA #CA9C38 #38CA9C
tetradic
#9C38CA #CA5338 #66CA38 #38AFCA
square
#9C38CA #CA5338 #66CA38 #38AFCA
split-complementary
#9C38CA #AFCA38 #38CA53
monochromatic
#521D6B #77299B #9C38CA #B468D7 #CC99E4

Accessibility & contrast

On white

5.48
#9C38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9C38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C38CA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C38CA#FFFFFF#000000##FFFFFF
##9C38CA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#286BC7
Tritanopia (blue-blind)
#97587E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9c38ca;
/* rgb */ color: rgb(156, 56, 202);
/* oklch */ color: oklch(54.9% 0.220 312.7);
Tailwind
colors: {
  custom: {
    50: '#be78db',
    500: '#9c38ca',
    950: '#000000',
  },
}
SCSS
$custom: #9c38ca;
$custom-light: #be78db;
$custom-dark: #000000;
JSON
{
  "hex": "#9c38ca",
  "rgb": {
    "r": 156,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 281.096,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54922,
    "c": 0.21988,
    "h": 312.7
  },
  "luminance": 0.14161
}

Semantic roles & 50–950 ramp

primary
#9C38CA
secondary
#A3CF8E
accent
#E14777
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9C38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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