#9B42BC#9B42BC

#9B42BC is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.194 H 315.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9B42BC
RGBrgb(155, 66, 188)
HSLhsl(284, 48%, 50%)
HSVhsv(284, 65%, 74%)
CMYKcmyk(17.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(44.94, 55.73, -48.28)
CIE-LCHlch(44.94, 73.73, 319.10°)
OKLaboklab(54.95% 0.1385 -0.1355)
OKLCHoklch(54.95% 0.194 315.6)
XYZxyz(24.5415, 14.4967, 49.0726)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42BC #63BC42
analogous
#5E42BC #9B42BC #BC42A0
triadic
#9B42BC #BC9B42 #42BC9B
tetradic
#9B42BC #BC5E42 #63BC42 #42A0BC
square
#9B42BC #BC5E42 #63BC42 #42A0BC
split-complementary
#9B42BC #A0BC42 #42BC5E
monochromatic
#502261 #76328F #9B42BC #B36FCC #CB9CDC

Accessibility & contrast

On white

5.39
#9B42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9B42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42BC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42BC#FFFFFF#000000##FFFFFF
##9B42BC1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E65C0
Deuteranopia (green-blind)
#416DB9
Tritanopia (blue-blind)
#995979
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9b42bc;
/* rgb */ color: rgb(155, 66, 188);
/* oklch */ color: oklch(54.9% 0.194 315.6);
Tailwind
colors: {
  custom: {
    50: '#bc7cd1',
    500: '#9b42bc',
    950: '#000000',
  },
}
SCSS
$custom: #9b42bc;
$custom-light: #bc7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42bc",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 283.77,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54947,
    "c": 0.19374,
    "h": 315.6
  },
  "luminance": 0.14496
}

Semantic roles & 50–950 ramp

primary
#9B42BC
secondary
#A0C991
accent
#D85075
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9B42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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