#9D42CD#9D42CD

#9D42CD is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.211 H 311.5°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9D42CD
RGBrgb(157, 66, 205)
HSLhsl(279, 58%, 53%)
HSVhsv(279, 68%, 80%)
CMYKcmyk(23.4%, 67.8%, 0%, 19.6%)
CIE-LABlab(46.28, 59.73, -55.97)
CIE-LCHlch(46.28, 81.86, 316.86°)
OKLaboklab(56.31% 0.1399 -0.158)
OKLCHoklch(56.31% 0.211 311.5)
XYZxyz(26.8702, 15.4730, 59.3169)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42CD #72CD42
analogous
#5842CD #9D42CD #CD42B7
triadic
#9D42CD #CD9D42 #42CD9D
tetradic
#9D42CD #CD5842 #72CD42 #42B7CD
square
#9D42CD #CD5842 #72CD42 #42B7CD
split-complementary
#9D42CD #B7CD42 #42CD58
monochromatic
#581F76 #7C2CA6 #9D42CD #B672DA #CFA3E7

Accessibility & contrast

On white

5.13
#9D42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9D42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42CD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42CD#FFFFFF#000000##FFFFFF
##9D42CD1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#326FCA
Tritanopia (blue-blind)
#975F82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d42cd;
/* rgb */ color: rgb(157, 66, 205);
/* oklch */ color: oklch(56.3% 0.211 311.5);
Tailwind
colors: {
  custom: {
    50: '#be7ddd',
    500: '#9d42cd',
    950: '#000000',
  },
}
SCSS
$custom: #9d42cd;
$custom-light: #be7ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42cd",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 279.281,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56306,
    "c": 0.21108,
    "h": 311.5
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#9D42CD
secondary
#ACD397
accent
#E1467C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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