#9D42CE#9D42CE

#9D42CE is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.4% C 0.212 H 311.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9D42CE
RGBrgb(157, 66, 206)
HSLhsl(279, 59%, 53%)
HSVhsv(279, 68%, 81%)
CMYKcmyk(23.8%, 68%, 0%, 19.2%)
CIE-LABlab(46.34, 59.94, -56.44)
CIE-LCHlch(46.34, 82.33, 316.72°)
OKLaboklab(56.37% 0.1399 -0.1594)
OKLCHoklch(56.37% 0.212 311.3)
XYZxyz(26.9913, 15.5214, 59.9546)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42CE #73CE42
analogous
#5742CE #9D42CE #CE42B9
triadic
#9D42CE #CE9D42 #42CE9D
tetradic
#9D42CE #CE5742 #73CE42 #42B9CE
square
#9D42CE #CE5742 #73CE42 #42B9CE
split-complementary
#9D42CE #B9CE42 #42CE57
monochromatic
#581F77 #7C2BA7 #9D42CE #B673DB #CFA3E7

Accessibility & contrast

On white

5.12
#9D42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9D42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42CE
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42CE#FFFFFF#000000##FFFFFF
##9D42CE1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#306FCB
Tritanopia (blue-blind)
#975F83
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d42ce;
/* rgb */ color: rgb(157, 66, 206);
/* oklch */ color: oklch(56.4% 0.212 311.3);
Tailwind
colors: {
  custom: {
    50: '#be7dde',
    500: '#9d42ce',
    950: '#000000',
  },
}
SCSS
$custom: #9d42ce;
$custom-light: #be7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42ce",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 279,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56373,
    "c": 0.21205,
    "h": 311.3
  },
  "luminance": 0.15521
}

Semantic roles & 50–950 ramp

primary
#9D42CE
secondary
#ADD498
accent
#E2467C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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