#9D42DB#9D42DB

#9D42DB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.225 H 308.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9D42DB
RGBrgb(157, 66, 219)
HSLhsl(276, 68%, 56%)
HSVhsv(276, 70%, 86%)
CMYKcmyk(28.3%, 69.9%, 0%, 14.1%)
CIE-LABlab(47.21, 62.74, -62.49)
CIE-LCHlch(47.21, 88.55, 315.12°)
OKLaboklab(57.27% 0.1384 -0.1772)
OKLCHoklch(57.27% 0.225 308)
XYZxyz(28.6364, 16.1794, 68.6185)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42DB #80DB42
analogous
#5042DB #9D42DB #DB42CD
triadic
#9D42DB #DB9D42 #42DB9D
tetradic
#9D42DB #DB5042 #80DB42 #42CDDB
square
#9D42DB #DB5042 #80DB42 #42CDDB
split-complementary
#9D42DB #CDDB42 #42DB50
monochromatic
#5C1A89 #7E24BC #9D42DB #B875E5 #D2A9EF

Accessibility & contrast

On white

4.96
#9D42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9D42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42DB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42DB#FFFFFF#000000##FFFFFF
##9D42DB1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#1871D8
Tritanopia (blue-blind)
#93658A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d42db;
/* rgb */ color: rgb(157, 66, 219);
/* oklch */ color: oklch(57.3% 0.225 308.0);
Tailwind
colors: {
  custom: {
    50: '#bf7ee7',
    500: '#9d42db',
    950: '#000000',
  },
}
SCSS
$custom: #9d42db;
$custom-light: #bf7ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42db",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 275.686,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57269,
    "c": 0.22479,
    "h": 308
  },
  "luminance": 0.16179
}

Semantic roles & 50–950 ramp

primary
#9D42DB
secondary
#B6DC9D
accent
#EB3D83
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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