#9B42CC#9B42CC

#9B42CC is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.209 H 311.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9B42CC
RGBrgb(155, 66, 204)
HSLhsl(279, 58%, 53%)
HSVhsv(279, 68%, 80%)
CMYKcmyk(24%, 67.6%, 0%, 20%)
CIE-LABlab(45.94, 59.09, -55.95)
CIE-LCHlch(45.94, 81.37, 316.56°)
OKLaboklab(55.99% 0.1375 -0.158)
OKLCHoklch(55.99% 0.209 311)
XYZxyz(26.3628, 15.2252, 58.6650)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42CC #73CC42
analogous
#5642CC #9B42CC #CC42B8
triadic
#9B42CC #CC9B42 #42CC9B
tetradic
#9B42CC #CC5642 #73CC42 #42B8CC
square
#9B42CC #CC5642 #73CC42 #42B8CC
split-complementary
#9B42CC #B8CC42 #42CC56
monochromatic
#561F74 #7A2CA4 #9B42CC #B572D9 #CEA2E6

Accessibility & contrast

On white

5.19
#9B42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9B42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42CC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42CC#FFFFFF#000000##FFFFFF
##9B42CC1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#306EC9
Tritanopia (blue-blind)
#955F82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9b42cc;
/* rgb */ color: rgb(155, 66, 204);
/* oklch */ color: oklch(56.0% 0.209 311.0);
Tailwind
colors: {
  custom: {
    50: '#bd7ddc',
    500: '#9b42cc',
    950: '#000000',
  },
}
SCSS
$custom: #9b42cc;
$custom-light: #bd7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42cc",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 278.696,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5599,
    "c": 0.20945,
    "h": 311
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#9B42CC
secondary
#ACD397
accent
#E1477E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9B42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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