#9C42DD#9C42DD

#9C42DD is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.226 H 307.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9C42DD
RGBrgb(156, 66, 221)
HSLhsl(275, 70%, 56%)
HSVhsv(275, 70%, 87%)
CMYKcmyk(29.4%, 70.1%, 0%, 13.3%)
CIE-LABlab(47.22, 62.98, -63.62)
CIE-LCHlch(47.22, 89.53, 314.71°)
OKLaboklab(57.29% 0.1368 -0.1805)
OKLCHoklch(57.29% 0.226 307.1)
XYZxyz(28.7069, 16.1852, 70.0043)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42DD #83DD42
analogous
#4F42DD #9C42DD #DD42D1
triadic
#9C42DD #DD9C42 #42DD9C
tetradic
#9C42DD #DD4F42 #83DD42 #42D1DD
square
#9C42DD #DD4F42 #83DD42 #42D1DD
split-complementary
#9C42DD #D1DD42 #42DD4F
monochromatic
#5C198C #7E22BF #9C42DD #B776E6 #D2AAF0

Accessibility & contrast

On white

4.96
#9C42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9C42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42DD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42DD#FFFFFF#000000##FFFFFF
##9C42DD1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0D71DA
Tritanopia (blue-blind)
#91658B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9c42dd;
/* rgb */ color: rgb(156, 66, 221);
/* oklch */ color: oklch(57.3% 0.226 307.1);
Tailwind
colors: {
  custom: {
    50: '#be7ee8',
    500: '#9c42dd',
    950: '#000000',
  },
}
SCSS
$custom: #9c42dd;
$custom-light: #be7ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42dd",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 274.839,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5729,
    "c": 0.22649,
    "h": 307.1
  },
  "luminance": 0.16185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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