#9D42D2#9D42D2

#9D42D2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.6% C 0.216 H 310.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9D42D2
RGBrgb(157, 66, 210)
HSLhsl(278, 62%, 54%)
HSVhsv(278, 69%, 82%)
CMYKcmyk(25.2%, 68.6%, 0%, 17.6%)
CIE-LABlab(46.60, 60.79, -58.32)
CIE-LCHlch(46.60, 84.25, 316.19°)
OKLaboklab(56.65% 0.1395 -0.1649)
OKLCHoklch(56.65% 0.216 310.2)
XYZxyz(27.4834, 15.7183, 62.5464)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42D2 #77D242
analogous
#5542D2 #9D42D2 #D242BF
triadic
#9D42D2 #D29D42 #42D29D
tetradic
#9D42D2 #D25542 #77D242 #42BFD2
square
#9D42D2 #D25542 #77D242 #42BFD2
split-complementary
#9D42D2 #BFD242 #42D255
monochromatic
#591E7C #7D29AD #9D42D2 #B773DE #D0A5EA

Accessibility & contrast

On white

5.07
#9D42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9D42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42D2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42D2#FFFFFF#000000##FFFFFF
##9D42D21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#2B70CF
Tritanopia (blue-blind)
#966185
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d42d2;
/* rgb */ color: rgb(157, 66, 210);
/* oklch */ color: oklch(56.6% 0.216 310.2);
Tailwind
colors: {
  custom: {
    50: '#be7de1',
    500: '#9d42d2',
    950: '#000000',
  },
}
SCSS
$custom: #9d42d2;
$custom-light: #be7de1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42d2",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 277.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56645,
    "c": 0.21597,
    "h": 310.2
  },
  "luminance": 0.15718
}

Semantic roles & 50–950 ramp

primary
#9D42D2
secondary
#B0D799
accent
#E5437F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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