#9B42DB#9B42DB

#9B42DB is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.0% C 0.224 H 307.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9B42DB
RGBrgb(155, 66, 219)
HSLhsl(275, 68%, 56%)
HSVhsv(275, 70%, 86%)
CMYKcmyk(29.2%, 69.9%, 0%, 14.1%)
CIE-LABlab(46.95, 62.35, -62.92)
CIE-LCHlch(46.95, 88.58, 314.74°)
OKLaboklab(57.03% 0.1358 -0.1785)
OKLCHoklch(57.03% 0.224 307.3)
XYZxyz(28.2493, 15.9798, 68.6003)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42DB #82DB42
analogous
#4E42DB #9B42DB #DB42CE
triadic
#9B42DB #DB9B42 #42DB9B
tetradic
#9B42DB #DB4E42 #82DB42 #42CEDB
square
#9B42DB #DB4E42 #82DB42 #42CEDB
split-complementary
#9B42DB #CEDB42 #42DB4E
monochromatic
#5A1A89 #7C24BC #9B42DB #B675E5 #D1A9EF

Accessibility & contrast

On white

5.01
#9B42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9B42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42DB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42DB#FFFFFF#000000##FFFFFF
##9B42DB1.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#1170D8
Tritanopia (blue-blind)
#90658A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b42db;
/* rgb */ color: rgb(155, 66, 219);
/* oklch */ color: oklch(57.0% 0.224 307.3);
Tailwind
colors: {
  custom: {
    50: '#bd7de7',
    500: '#9b42db',
    950: '#000000',
  },
}
SCSS
$custom: #9b42db;
$custom-light: #bd7de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42db",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 274.902,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57028,
    "c": 0.22427,
    "h": 307.3
  },
  "luminance": 0.15979
}

Semantic roles & 50–950 ramp

primary
#9B42DB
secondary
#B7DC9D
accent
#EB3D86
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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