#9C42BD#9C42BD

#9C42BD is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.195 H 315.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9C42BD
RGBrgb(156, 66, 189)
HSLhsl(284, 48%, 50%)
HSVhsv(284, 65%, 74%)
CMYKcmyk(17.5%, 65.1%, 0%, 25.9%)
CIE-LABlab(45.14, 56.17, -48.53)
CIE-LCHlch(45.14, 74.23, 319.17°)
OKLaboklab(55.14% 0.1397 -0.1362)
OKLCHoklch(55.14% 0.195 315.7)
XYZxyz(24.8424, 14.6394, 49.6513)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42BD #63BD42
analogous
#5E42BD #9C42BD #BD42A1
triadic
#9C42BD #BD9C42 #42BD9C
tetradic
#9C42BD #BD5E42 #63BD42 #42A1BD
square
#9C42BD #BD5E42 #63BD42 #42A1BD
split-complementary
#9C42BD #A1BD42 #42BD5E
monochromatic
#512262 #773290 #9C42BD #B46FCD #CC9DDD

Accessibility & contrast

On white

5.35
#9C42BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9C42BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42BD
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42BD#FFFFFF#000000##FFFFFF
##9C42BD1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C65C1
Deuteranopia (green-blind)
#416DBA
Tritanopia (blue-blind)
#9A597A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9c42bd;
/* rgb */ color: rgb(156, 66, 189);
/* oklch */ color: oklch(55.1% 0.195 315.7);
Tailwind
colors: {
  custom: {
    50: '#bd7dd1',
    500: '#9c42bd',
    950: '#000000',
  },
}
SCSS
$custom: #9c42bd;
$custom-light: #bd7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42bd",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 283.902,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.55139,
    "c": 0.19511,
    "h": 315.7
  },
  "luminance": 0.14638
}

Semantic roles & 50–950 ramp

primary
#9C42BD
secondary
#A1C992
accent
#D85074
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9C42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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