#9D42E2#9D42E2

#9D42E2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.8% C 0.232 H 306.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9D42E2
RGBrgb(157, 66, 226)
HSLhsl(274, 73%, 57%)
HSVhsv(274, 71%, 89%)
CMYKcmyk(30.5%, 70.8%, 0%, 11.4%)
CIE-LABlab(47.70, 64.28, -65.68)
CIE-LCHlch(47.70, 91.90, 314.38°)
OKLaboklab(57.77% 0.1374 -0.1865)
OKLCHoklch(57.77% 0.232 306.4)
XYZxyz(29.5773, 16.5558, 73.5742)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42E2 #87E242
analogous
#4D42E2 #9D42E2 #E242D7
triadic
#9D42E2 #E29D42 #42E29D
tetradic
#9D42E2 #E24D42 #87E242 #42D7E2
square
#9D42E2 #E24D42 #87E242 #42D7E2
split-complementary
#9D42E2 #D7E242 #42E24D
monochromatic
#5D1793 #7F1FC8 #9D42E2 #B977EA #D4ACF2

Accessibility & contrast

On white

4.87
#9D42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9D42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42E2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42E2#FFFFFF#000000##FFFFFF
##9D42E21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#91678E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d42e2;
/* rgb */ color: rgb(157, 66, 226);
/* oklch */ color: oklch(57.8% 0.232 306.4);
Tailwind
colors: {
  custom: {
    50: '#bf7eec',
    500: '#9d42e2',
    950: '#000000',
  },
}
SCSS
$custom: #9d42e2;
$custom-light: #bf7eec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42e2",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 274.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57769,
    "c": 0.23166,
    "h": 306.4
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#9D42E2
secondary
#BBE09F
accent
#F03887
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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