#9B42D8#9B42D8

#9B42D8 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.221 H 308.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9B42D8
RGBrgb(155, 66, 216)
HSLhsl(276, 66%, 55%)
HSVhsv(276, 69%, 85%)
CMYKcmyk(28.2%, 69.4%, 0%, 15.3%)
CIE-LABlab(46.74, 61.69, -61.55)
CIE-LCHlch(46.74, 87.14, 315.07°)
OKLaboklab(56.82% 0.1362 -0.1744)
OKLCHoklch(56.82% 0.221 308)
XYZxyz(27.8579, 15.8233, 66.5391)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42D8 #7FD842
analogous
#5042D8 #9B42D8 #D842CA
triadic
#9B42D8 #D89B42 #42D89B
tetradic
#9B42D8 #D85042 #7FD842 #42CAD8
square
#9B42D8 #D85042 #7FD842 #42CAD8
split-complementary
#9B42D8 #CAD842 #42D850
monochromatic
#5A1B84 #7C26B7 #9B42D8 #B675E2 #D1A7ED

Accessibility & contrast

On white

5.04
#9B42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#9B42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42D8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42D8#FFFFFF#000000##FFFFFF
##9B42D81.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#1B70D5
Tritanopia (blue-blind)
#916488
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b42d8;
/* rgb */ color: rgb(155, 66, 216);
/* oklch */ color: oklch(56.8% 0.221 308.0);
Tailwind
colors: {
  custom: {
    50: '#bd7de5',
    500: '#9b42d8',
    950: '#000000',
  },
}
SCSS
$custom: #9b42d8;
$custom-light: #bd7de5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42d8",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 275.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56816,
    "c": 0.2213,
    "h": 308
  },
  "luminance": 0.15823
}

Semantic roles & 50–950 ramp

primary
#9B42D8
secondary
#B5DA9C
accent
#E93F84
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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