#9D42D9#9D42D9

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

Color values

HEX#9D42D9
RGBrgb(157, 66, 217)
HSLhsl(276, 67%, 55%)
HSVhsv(276, 70%, 85%)
CMYKcmyk(27.6%, 69.6%, 0%, 14.9%)
CIE-LABlab(47.07, 62.31, -61.57)
CIE-LCHlch(47.07, 87.60, 315.34°)
OKLaboklab(57.13% 0.1386 -0.1745)
OKLCHoklch(57.13% 0.223 308.5)
XYZxyz(28.3747, 16.0747, 67.2401)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42D9 #7ED942
analogous
#5142D9 #9D42D9 #D942C9
triadic
#9D42D9 #D99D42 #42D99D
tetradic
#9D42D9 #D95142 #7ED942 #42C9D9
square
#9D42D9 #D95142 #7ED942 #42C9D9
split-complementary
#9D42D9 #C9D942 #42D951
monochromatic
#5B1B86 #7E25B9 #9D42D9 #B775E3 #D2A8ED

Accessibility & contrast

On white

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

On black

4.21
#9D42D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9D42D9#FFFFFF#000000##FFFFFF
##9D42D91.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#1D71D6
Tritanopia (blue-blind)
#946489
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d42d9;
/* rgb */ color: rgb(157, 66, 217);
/* oklch */ color: oklch(57.1% 0.223 308.5);
Tailwind
colors: {
  custom: {
    50: '#bf7ee6',
    500: '#9d42d9',
    950: '#000000',
  },
}
SCSS
$custom: #9d42d9;
$custom-light: #bf7ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42d9",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 276.159,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57129,
    "c": 0.22283,
    "h": 308.5
  },
  "luminance": 0.16074
}

Semantic roles & 50–950 ramp

primary
#9D42D9
secondary
#B5DB9C
accent
#E93E82
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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