#9B42DA#9B42DA

#9B42DA is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 57.0% C 0.223 H 307.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9B42DA
RGBrgb(155, 66, 218)
HSLhsl(275, 67%, 56%)
HSVhsv(275, 70%, 85%)
CMYKcmyk(28.9%, 69.7%, 0%, 14.5%)
CIE-LABlab(46.88, 62.13, -62.47)
CIE-LCHlch(46.88, 88.10, 314.85°)
OKLaboklab(56.96% 0.1359 -0.1772)
OKLCHoklch(56.96% 0.223 307.5)
XYZxyz(28.1180, 15.9273, 67.9091)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42DA #81DA42
analogous
#4F42DA #9B42DA #DA42CD
triadic
#9B42DA #DA9B42 #42DA9B
tetradic
#9B42DA #DA4F42 #81DA42 #42CDDA
square
#9B42DA #DA4F42 #81DA42 #42CDDA
split-complementary
#9B42DA #CDDA42 #42DA4F
monochromatic
#5A1A87 #7C24BA #9B42DA #B675E4 #D1A8EE

Accessibility & contrast

On white

5.02
#9B42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9B42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42DA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42DA#FFFFFF#000000##FFFFFF
##9B42DA1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#1570D7
Tritanopia (blue-blind)
#91648A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9b42da;
/* rgb */ color: rgb(155, 66, 218);
/* oklch */ color: oklch(57.0% 0.223 307.5);
Tailwind
colors: {
  custom: {
    50: '#bd7de6',
    500: '#9b42da',
    950: '#000000',
  },
}
SCSS
$custom: #9b42da;
$custom-light: #bd7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42da",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 275.132,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56957,
    "c": 0.22328,
    "h": 307.5
  },
  "luminance": 0.15927
}

Semantic roles & 50–950 ramp

primary
#9B42DA
secondary
#B6DB9C
accent
#EA3E85
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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