#9B42BF#9B42BF

#9B42BF is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.197 H 314.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9B42BF
RGBrgb(155, 66, 191)
HSLhsl(283, 49%, 50%)
HSVhsv(283, 65%, 75%)
CMYKcmyk(18.8%, 65.4%, 0%, 25.1%)
CIE-LABlab(45.12, 56.35, -49.73)
CIE-LCHlch(45.12, 75.16, 318.57°)
OKLaboklab(55.14% 0.1384 -0.1398)
OKLCHoklch(55.14% 0.197 314.7)
XYZxyz(24.8682, 14.6274, 50.7935)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42BF #66BF42
analogous
#5C42BF #9B42BF #BF42A4
triadic
#9B42BF #BF9B42 #42BF9B
tetradic
#9B42BF #BF5C42 #66BF42 #42A4BF
square
#9B42BF #BF5C42 #66BF42 #42A4BF
split-complementary
#9B42BF #A4BF42 #42BF5C
monochromatic
#512265 #763292 #9B42BF #B370CE #CB9DDE

Accessibility & contrast

On white

5.35
#9B42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9B42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42BF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42BF#FFFFFF#000000##FFFFFF
##9B42BF1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0266C3
Deuteranopia (green-blind)
#3E6DBC
Tritanopia (blue-blind)
#985A7B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9b42bf;
/* rgb */ color: rgb(155, 66, 191);
/* oklch */ color: oklch(55.1% 0.197 314.7);
Tailwind
colors: {
  custom: {
    50: '#bc7cd3',
    500: '#9b42bf',
    950: '#000000',
  },
}
SCSS
$custom: #9b42bf;
$custom-light: #bc7cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42bf",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 282.72,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55137,
    "c": 0.19668,
    "h": 314.7
  },
  "luminance": 0.14627
}

Semantic roles & 50–950 ramp

primary
#9B42BF
secondary
#A3CA93
accent
#D94F77
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9B42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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