#9D42D5#9D42D5

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

Color values

HEX#9D42D5
RGBrgb(157, 66, 213)
HSLhsl(277, 64%, 55%)
HSVhsv(277, 69%, 84%)
CMYKcmyk(26.3%, 69%, 0%, 16.5%)
CIE-LABlab(46.80, 61.44, -59.72)
CIE-LCHlch(46.80, 85.68, 315.81°)
OKLaboklab(56.85% 0.1391 -0.169)
OKLCHoklch(56.85% 0.219 309.5)
XYZxyz(27.8607, 15.8692, 64.5333)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42D5 #7AD542
analogous
#5442D5 #9D42D5 #D542C3
triadic
#9D42D5 #D59D42 #42D59D
tetradic
#9D42D5 #D55442 #7AD542 #42C3D5
square
#9D42D5 #D55442 #7AD542 #42C3D5
split-complementary
#9D42D5 #C3D542 #42D554
monochromatic
#5A1C80 #7D28B2 #9D42D5 #B774E0 #D1A6EB

Accessibility & contrast

On white

5.03
#9D42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9D42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42D5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42D5#FFFFFF#000000##FFFFFF
##9D42D51.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#2670D2
Tritanopia (blue-blind)
#956287
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d42d5;
/* rgb */ color: rgb(157, 66, 213);
/* oklch */ color: oklch(56.9% 0.219 309.5);
Tailwind
colors: {
  custom: {
    50: '#be7de3',
    500: '#9d42d5',
    950: '#000000',
  },
}
SCSS
$custom: #9d42d5;
$custom-light: #be7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42d5",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 277.143,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56851,
    "c": 0.21891,
    "h": 309.5
  },
  "luminance": 0.15869
}

Semantic roles & 50–950 ramp

primary
#9D42D5
secondary
#B2D89A
accent
#E74180
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A15
muted
#827C84

Preview Lab

Preview with #9D42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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