#9D42C8#9D42C8

#9D42C8 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.206 H 312.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9D42C8
RGBrgb(157, 66, 200)
HSLhsl(281, 55%, 52%)
HSVhsv(281, 67%, 78%)
CMYKcmyk(21.5%, 67%, 0%, 21.6%)
CIE-LABlab(45.95, 58.67, -53.60)
CIE-LCHlch(45.95, 79.47, 317.59°)
OKLaboklab(55.97% 0.1404 -0.1511)
OKLCHoklch(55.97% 0.206 312.9)
XYZxyz(26.2763, 15.2354, 56.1889)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42C8 #6DC842
analogous
#5A42C8 #9D42C8 #C842B0
triadic
#9D42C8 #C89D42 #42C89D
tetradic
#9D42C8 #C85A42 #6DC842 #42B0C8
square
#9D42C8 #C85A42 #6DC842 #42B0C8
split-complementary
#9D42C8 #B0C842 #42C85A
monochromatic
#56206F #7B2E9F #9D42C8 #B671D6 #CEA1E4

Accessibility & contrast

On white

5.19
#9D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9D42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42C8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42C8#FFFFFF#000000##FFFFFF
##9D42C81.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#386FC5
Tritanopia (blue-blind)
#985D80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d42c8;
/* rgb */ color: rgb(157, 66, 200);
/* oklch */ color: oklch(56.0% 0.206 312.9);
Tailwind
colors: {
  custom: {
    50: '#be7dd9',
    500: '#9d42c8',
    950: '#000000',
  },
}
SCSS
$custom: #9d42c8;
$custom-light: #be7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42c8",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 280.746,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55974,
    "c": 0.2062,
    "h": 312.9
  },
  "luminance": 0.15235
}

Semantic roles & 50–950 ramp

primary
#9D42C8
secondary
#A8D096
accent
#DE4A79
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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