#9D42D7#9D42D7

#9D42D7 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.0% C 0.221 H 309.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9D42D7
RGBrgb(157, 66, 215)
HSLhsl(277, 65%, 55%)
HSVhsv(277, 69%, 84%)
CMYKcmyk(27%, 69.3%, 0%, 15.7%)
CIE-LABlab(46.94, 61.87, -60.65)
CIE-LCHlch(46.94, 86.64, 315.57°)
OKLaboklab(56.99% 0.1389 -0.1717)
OKLCHoklch(56.99% 0.221 309)
XYZxyz(28.1161, 15.9713, 65.8784)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42D7 #7CD742
analogous
#5242D7 #9D42D7 #D742C7
triadic
#9D42D7 #D79D42 #42D79D
tetradic
#9D42D7 #D75242 #7CD742 #42C7D7
square
#9D42D7 #D75242 #7CD742 #42C7D7
split-complementary
#9D42D7 #C7D742 #42D752
monochromatic
#5B1C83 #7E26B5 #9D42D7 #B775E2 #D1A7EC

Accessibility & contrast

On white

5.01
#9D42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D42D7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42D7#FFFFFF#000000##FFFFFF
##9D42D71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#2270D4
Tritanopia (blue-blind)
#946388
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d42d7;
/* rgb */ color: rgb(157, 66, 215);
/* oklch */ color: oklch(57.0% 0.221 309.0);
Tailwind
colors: {
  custom: {
    50: '#bf7de4',
    500: '#9d42d7',
    950: '#000000',
  },
}
SCSS
$custom: #9d42d7;
$custom-light: #bf7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42d7",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 276.644,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56989,
    "c": 0.22087,
    "h": 309
  },
  "luminance": 0.15971
}

Semantic roles & 50–950 ramp

primary
#9D42D7
secondary
#B3DA9B
accent
#E84081
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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