#9C42CC#9C42CC

#9C42CC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.210 H 311.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9C42CC
RGBrgb(156, 66, 204)
HSLhsl(279, 58%, 53%)
HSVhsv(279, 68%, 80%)
CMYKcmyk(23.5%, 67.6%, 0%, 20%)
CIE-LABlab(46.08, 59.30, -55.72)
CIE-LCHlch(46.08, 81.38, 316.78°)
OKLaboklab(56.11% 0.1388 -0.1573)
OKLCHoklch(56.11% 0.21 311.4)
XYZxyz(26.5556, 15.3246, 58.6741)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42CC #72CC42
analogous
#5742CC #9C42CC #CC42B7
triadic
#9C42CC #CC9C42 #42CC9C
tetradic
#9C42CC #CC5742 #72CC42 #42B7CC
square
#9C42CC #CC5742 #72CC42 #42B7CC
split-complementary
#9C42CC #B7CC42 #42CC57
monochromatic
#571F74 #7B2CA4 #9C42CC #B572D9 #CEA2E6

Accessibility & contrast

On white

5.17
#9C42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9C42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42CC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42CC#FFFFFF#000000##FFFFFF
##9C42CC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#326FC9
Tritanopia (blue-blind)
#965F82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c42cc;
/* rgb */ color: rgb(156, 66, 204);
/* oklch */ color: oklch(56.1% 0.210 311.4);
Tailwind
colors: {
  custom: {
    50: '#bd7ddc',
    500: '#9c42cc',
    950: '#000000',
  },
}
SCSS
$custom: #9c42cc;
$custom-light: #bd7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42cc",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 279.13,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56114,
    "c": 0.20977,
    "h": 311.4
  },
  "luminance": 0.15324
}

Semantic roles & 50–950 ramp

primary
#9C42CC
secondary
#ACD397
accent
#E1477D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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