#9D42EB#9D42EB

#9D42EB is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.4% C 0.240 H 304.4°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9D42EB
RGBrgb(157, 66, 235)
HSLhsl(272, 81%, 59%)
HSVhsv(272, 72%, 92%)
CMYKcmyk(33.2%, 71.9%, 0%, 7.8%)
CIE-LABlab(48.34, 66.27, -69.73)
CIE-LCHlch(48.34, 96.20, 313.55°)
OKLaboklab(58.43% 0.1358 -0.1984)
OKLCHoklch(58.43% 0.24 304.4)
XYZxyz(30.8448, 17.0628, 80.2496)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42EB #90EB42
analogous
#4942EB #9D42EB #EB42E4
triadic
#9D42EB #EB9D42 #42EB9D
tetradic
#9D42EB #EB4942 #90EB42 #42E4EB
square
#9D42EB #EB4942 #90EB42 #42E4EB
split-complementary
#9D42EB #E4EB42 #42EB49
monochromatic
#5F11A2 #7F17D9 #9D42EB #BA79F1 #D6B1F7

Accessibility & contrast

On white

4.76
#9D42EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#9D42EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42EB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42EB#FFFFFF#000000##FFFFFF
##9D42EB1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#8E6B93
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9d42eb;
/* rgb */ color: rgb(157, 66, 235);
/* oklch */ color: oklch(58.4% 0.240 304.4);
Tailwind
colors: {
  custom: {
    50: '#c07ef2',
    500: '#9d42eb',
    950: '#000000',
  },
}
SCSS
$custom: #9d42eb;
$custom-light: #c07ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42eb",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 272.308,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58427,
    "c": 0.24047,
    "h": 304.4
  },
  "luminance": 0.17063
}

Semantic roles & 50–950 ramp

primary
#9D42EB
secondary
#C2E6A3
accent
#F7318C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9D42EB

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

Preview Lab → · Contrast checker → · Palette generator →

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