#9C42DC#9C42DC

#9C42DC is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.2% C 0.226 H 307.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9C42DC
RGBrgb(156, 66, 220)
HSLhsl(275, 69%, 56%)
HSVhsv(275, 70%, 86%)
CMYKcmyk(29.1%, 70%, 0%, 13.7%)
CIE-LABlab(47.15, 62.76, -63.17)
CIE-LCHlch(47.15, 89.05, 314.82°)
OKLaboklab(57.22% 0.1369 -0.1792)
OKLCHoklch(57.22% 0.226 307.4)
XYZxyz(28.5741, 16.1320, 69.3048)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42DC #82DC42
analogous
#4F42DC #9C42DC #DC42CF
triadic
#9C42DC #DC9C42 #42DC9C
tetradic
#9C42DC #DC4F42 #82DC42 #42CFDC
square
#9C42DC #DC4F42 #82DC42 #42CFDC
split-complementary
#9C42DC #CFDC42 #42DC4F
monochromatic
#5B1A8A #7D23BE #9C42DC #B776E6 #D2A9EF

Accessibility & contrast

On white

4.97
#9C42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9C42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42DC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42DC#FFFFFF#000000##FFFFFF
##9C42DC1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#1271D9
Tritanopia (blue-blind)
#91658B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9c42dc;
/* rgb */ color: rgb(156, 66, 220);
/* oklch */ color: oklch(57.2% 0.226 307.4);
Tailwind
colors: {
  custom: {
    50: '#be7ee8',
    500: '#9c42dc',
    950: '#000000',
  },
}
SCSS
$custom: #9c42dc;
$custom-light: #be7ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42dc",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 275.065,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57219,
    "c": 0.22551,
    "h": 307.4
  },
  "luminance": 0.16132
}

Semantic roles & 50–950 ramp

primary
#9C42DC
secondary
#B8DD9D
accent
#EC3C85
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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