#9B42DD#9B42DD

#9B42DD is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.2% C 0.226 H 306.8°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9B42DD
RGBrgb(155, 66, 221)
HSLhsl(274, 70%, 56%)
HSVhsv(274, 70%, 87%)
CMYKcmyk(29.9%, 70.1%, 0%, 13.3%)
CIE-LABlab(47.09, 62.79, -63.84)
CIE-LCHlch(47.09, 89.54, 314.53°)
OKLaboklab(57.17% 0.1355 -0.1812)
OKLCHoklch(57.17% 0.226 306.8)
XYZxyz(28.5141, 16.0858, 69.9953)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B42DD #84DD42
analogous
#4E42DD #9B42DD #DD42D1
triadic
#9B42DD #DD9B42 #42DD9B
tetradic
#9B42DD #DD4E42 #84DD42 #42D1DD
square
#9B42DD #DD4E42 #84DD42 #42D1DD
split-complementary
#9B42DD #D1DD42 #42DD4E
monochromatic
#5B198C #7D22BF #9B42DD #B676E6 #D2AAF0

Accessibility & contrast

On white

4.98
#9B42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9B42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B42DD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B42DD#FFFFFF#000000##FFFFFF
##9B42DD1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0870DA
Tritanopia (blue-blind)
#90668B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9b42dd;
/* rgb */ color: rgb(155, 66, 221);
/* oklch */ color: oklch(57.2% 0.226 306.8);
Tailwind
colors: {
  custom: {
    50: '#be7de8',
    500: '#9b42dd',
    950: '#000000',
  },
}
SCSS
$custom: #9b42dd;
$custom-light: #be7de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b42dd",
  "rgb": {
    "r": 155,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 274.452,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57171,
    "c": 0.22624,
    "h": 306.8
  },
  "luminance": 0.16085
}

Semantic roles & 50–950 ramp

primary
#9B42DD
secondary
#B9DD9D
accent
#EC3B87
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9B42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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