#9B42BE#9B42BE

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

Color values

HEX#9B42BE
RGBrgb(155, 66, 190)
HSLhsl(283, 49%, 50%)
HSVhsv(283, 65%, 75%)
CMYKcmyk(18.4%, 65.3%, 0%, 25.5%)
CIE-LABlab(45.06, 56.14, -49.25)
CIE-LCHlch(45.06, 74.68, 318.74°)
OKLaboklab(55.07% 0.1384 -0.1384)
OKLCHoklch(55.07% 0.196 315)
XYZxyz(24.7585, 14.5835, 50.2159)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42BE #65BE42
analogous
#5D42BE #9B42BE #BE42A3
triadic
#9B42BE #BE9B42 #42BE9B
tetradic
#9B42BE #BE5D42 #65BE42 #42A3BE
square
#9B42BE #BE5D42 #65BE42 #42A3BE
split-complementary
#9B42BE #A3BE42 #42BE5D
monochromatic
#512263 #763291 #9B42BE #B370CE #CB9DDD

Accessibility & contrast

On white

5.36
#9B42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9B42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42BE
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42BE#FFFFFF#000000##FFFFFF
##9B42BE1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0665C2
Deuteranopia (green-blind)
#3F6DBB
Tritanopia (blue-blind)
#98597A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9b42be;
/* rgb */ color: rgb(155, 66, 190);
/* oklch */ color: oklch(55.1% 0.196 315.0);
Tailwind
colors: {
  custom: {
    50: '#bc7cd2',
    500: '#9b42be',
    950: '#000000',
  },
}
SCSS
$custom: #9b42be;
$custom-light: #bc7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42be",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 283.065,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55073,
    "c": 0.1957,
    "h": 315
  },
  "luminance": 0.14583
}

Semantic roles & 50–950 ramp

primary
#9B42BE
secondary
#A2CA92
accent
#D84F76
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9B42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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