#9C38DD#9C38DD

#9C38DD is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.3% C 0.237 H 308.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9C38DD
RGBrgb(156, 56, 221)
HSLhsl(276, 71%, 54%)
HSVhsv(276, 75%, 87%)
CMYKcmyk(29.4%, 74.7%, 0%, 13.3%)
CIE-LABlab(45.79, 67.02, -65.93)
CIE-LCHlch(45.79, 94.01, 315.47°)
OKLaboklab(56.28% 0.1461 -0.1872)
OKLCHoklch(56.28% 0.238 308)
XYZxyz(28.1729, 15.1172, 69.8263)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C38DD #79DD38
analogous
#4A38DD #9C38DD #DD38CB
triadic
#9C38DD #DD9C38 #38DD9C
tetradic
#9C38DD #DD4A38 #79DD38 #38CBDD
square
#9C38DD #DD4A38 #79DD38 #38CBDD
split-complementary
#9C38DD #CBDD38 #38DD4A
monochromatic
#591784 #7C1FB8 #9C38DD #B66CE6 #D0A1EF

Accessibility & contrast

On white

5.22
#9C38DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9C38DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C38DD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C38DD#FFFFFF#000000##FFFFFF
##9C38DD1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#006DDA
Tritanopia (blue-blind)
#916089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9c38dd;
/* rgb */ color: rgb(156, 56, 221);
/* oklch */ color: oklch(56.3% 0.237 308.0);
Tailwind
colors: {
  custom: {
    50: '#bf79e9',
    500: '#9c38dd',
    950: '#000000',
  },
}
SCSS
$custom: #9c38dd;
$custom-light: #bf79e9;
$custom-dark: #000000;
JSON
{
  "hex": "#9c38dd",
  "rgb": {
    "r": 156,
    "g": 56,
    "b": 221
  },
  "hsl": {
    "h": 276.364,
    "s": 70.815,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56283,
    "c": 0.2375,
    "h": 308
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#9C38DD
secondary
#B1DB95
accent
#EE3A81
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C38DD

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

Preview Lab → · Contrast checker → · Palette generator →

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