#9C42DA#9C42DA

#9C42DA is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.224 H 307.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9C42DA
RGBrgb(156, 66, 218)
HSLhsl(276, 67%, 56%)
HSVhsv(276, 70%, 85%)
CMYKcmyk(28.4%, 69.7%, 0%, 14.5%)
CIE-LABlab(47.01, 62.33, -62.25)
CIE-LCHlch(47.01, 88.09, 315.04°)
OKLaboklab(57.08% 0.1372 -0.1765)
OKLCHoklch(57.08% 0.224 307.9)
XYZxyz(28.3108, 16.0267, 67.9181)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42DA #80DA42
analogous
#5042DA #9C42DA #DA42CC
triadic
#9C42DA #DA9C42 #42DA9C
tetradic
#9C42DA #DA5042 #80DA42 #42CCDA
square
#9C42DA #DA5042 #80DA42 #42CCDA
split-complementary
#9C42DA #CCDA42 #42DA50
monochromatic
#5B1A87 #7D24BA #9C42DA #B775E4 #D2A8EE

Accessibility & contrast

On white

4.99
#9C42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9C42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42DA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42DA#FFFFFF#000000##FFFFFF
##9C42DA1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#1870D7
Tritanopia (blue-blind)
#92648A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9c42da;
/* rgb */ color: rgb(156, 66, 218);
/* oklch */ color: oklch(57.1% 0.224 307.9);
Tailwind
colors: {
  custom: {
    50: '#be7de6',
    500: '#9c42da',
    950: '#000000',
  },
}
SCSS
$custom: #9c42da;
$custom-light: #be7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42da",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 275.526,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57078,
    "c": 0.22355,
    "h": 307.9
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#9C42DA
secondary
#B6DB9C
accent
#EA3E84
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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