#9D42DD#9D42DD

#9D42DD is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.4% C 0.227 H 307.5°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9D42DD
RGBrgb(157, 66, 221)
HSLhsl(275, 70%, 56%)
HSVhsv(275, 70%, 87%)
CMYKcmyk(29%, 70.1%, 0%, 13.3%)
CIE-LABlab(47.35, 63.18, -63.41)
CIE-LCHlch(47.35, 89.51, 314.90°)
OKLaboklab(57.41% 0.1381 -0.1799)
OKLCHoklch(57.41% 0.227 307.5)
XYZxyz(28.9012, 16.2854, 70.0135)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42DD #82DD42
analogous
#5042DD #9D42DD #DD42D0
triadic
#9D42DD #DD9D42 #42DD9D
tetradic
#9D42DD #DD5042 #82DD42 #42D0DD
square
#9D42DD #DD5042 #82DD42 #42D0DD
split-complementary
#9D42DD #D0DD42 #42DD50
monochromatic
#5C198C #7F22BF #9D42DD #B876E6 #D3AAF0

Accessibility & contrast

On white

4.93
#9D42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9D42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42DD
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42DD#FFFFFF#000000##FFFFFF
##9D42DD1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE1
Deuteranopia (green-blind)
#1271DA
Tritanopia (blue-blind)
#93658B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d42dd;
/* rgb */ color: rgb(157, 66, 221);
/* oklch */ color: oklch(57.4% 0.227 307.5);
Tailwind
colors: {
  custom: {
    50: '#bf7ee8',
    500: '#9d42dd',
    950: '#000000',
  },
}
SCSS
$custom: #9d42dd;
$custom-light: #bf7ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42dd",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 275.226,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57411,
    "c": 0.22676,
    "h": 307.5
  },
  "luminance": 0.16285
}

Semantic roles & 50–950 ramp

primary
#9D42DD
secondary
#B8DD9D
accent
#EC3B84
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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