#9B42DC#9B42DC

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

Color values

HEX#9B42DC
RGBrgb(155, 66, 220)
HSLhsl(275, 69%, 56%)
HSVhsv(275, 70%, 86%)
CMYKcmyk(29.5%, 70%, 0%, 13.7%)
CIE-LABlab(47.02, 62.57, -63.38)
CIE-LCHlch(47.02, 89.06, 314.63°)
OKLaboklab(57.1% 0.1356 -0.1798)
OKLCHoklch(57.1% 0.225 307)
XYZxyz(28.3813, 16.0326, 69.2957)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42DC #83DC42
analogous
#4E42DC #9B42DC #DC42D0
triadic
#9B42DC #DC9B42 #42DC9B
tetradic
#9B42DC #DC4E42 #83DC42 #42D0DC
square
#9B42DC #DC4E42 #83DC42 #42D0DC
split-complementary
#9B42DC #D0DC42 #42DC4E
monochromatic
#5B1A8A #7C23BE #9B42DC #B676E6 #D2A9EF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B42DC#FFFFFF#000000##FFFFFF
##9B42DC1.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)
#006CE0
Deuteranopia (green-blind)
#0D70D9
Tritanopia (blue-blind)
#90658B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b42dc;
/* rgb */ color: rgb(155, 66, 220);
/* oklch */ color: oklch(57.1% 0.225 307.0);
Tailwind
colors: {
  custom: {
    50: '#be7de8',
    500: '#9b42dc',
    950: '#000000',
  },
}
SCSS
$custom: #9b42dc;
$custom-light: #be7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42dc",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 274.675,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57099,
    "c": 0.22525,
    "h": 307
  },
  "luminance": 0.16032
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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