#9D42D6#9D42D6

#9D42D6 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.9% C 0.220 H 309.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9D42D6
RGBrgb(157, 66, 214)
HSLhsl(277, 64%, 55%)
HSVhsv(277, 69%, 84%)
CMYKcmyk(26.6%, 69.2%, 0%, 16.1%)
CIE-LABlab(46.87, 61.66, -60.18)
CIE-LCHlch(46.87, 86.16, 315.69°)
OKLaboklab(56.92% 0.139 -0.1704)
OKLCHoklch(56.92% 0.22 309.2)
XYZxyz(27.9880, 15.9201, 65.2038)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42D6 #7BD642
analogous
#5342D6 #9D42D6 #D642C5
triadic
#9D42D6 #D69D42 #42D69D
tetradic
#9D42D6 #D65342 #7BD642 #42C5D6
square
#9D42D6 #D65342 #7BD642 #42C5D6
split-complementary
#9D42D6 #C5D642 #42D653
monochromatic
#5A1C82 #7E27B4 #9D42D6 #B774E1 #D1A7EC

Accessibility & contrast

On white

5.02
#9D42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9D42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42D6
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42D6#FFFFFF#000000##FFFFFF
##9D42D61.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDA
Deuteranopia (green-blind)
#2470D3
Tritanopia (blue-blind)
#956387
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d42d6;
/* rgb */ color: rgb(157, 66, 214);
/* oklch */ color: oklch(56.9% 0.220 309.2);
Tailwind
colors: {
  custom: {
    50: '#bf7de3',
    500: '#9d42d6',
    950: '#000000',
  },
}
SCSS
$custom: #9d42d6;
$custom-light: #bf7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42d6",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 276.892,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5692,
    "c": 0.21989,
    "h": 309.2
  },
  "luminance": 0.1592
}

Semantic roles & 50–950 ramp

primary
#9D42D6
secondary
#B3D99B
accent
#E74081
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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