#9D42E9#9D42E9

#9D42E9 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.3% C 0.239 H 304.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9D42E9
RGBrgb(157, 66, 233)
HSLhsl(273, 79%, 59%)
HSVhsv(273, 72%, 91%)
CMYKcmyk(32.6%, 71.7%, 0%, 8.6%)
CIE-LABlab(48.19, 65.83, -68.84)
CIE-LCHlch(48.19, 95.25, 313.72°)
OKLaboklab(58.28% 0.1362 -0.1958)
OKLCHoklch(58.28% 0.239 304.8)
XYZxyz(30.5575, 16.9479, 78.7364)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D42E9 #8EE942
analogous
#4942E9 #9D42E9 #E942E1
triadic
#9D42E9 #E99D42 #42E99D
tetradic
#9D42E9 #E94942 #8EE942 #42E1E9
square
#9D42E9 #E94942 #8EE942 #42E1E9
split-complementary
#9D42E9 #E1E942 #42E949
monochromatic
#5F129E #7F19D5 #9D42E9 #B979EF #D6B0F6

Accessibility & contrast

On white

4.78
#9D42E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#9D42E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D42E9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D42E9#FFFFFF#000000##FFFFFF
##9D42E91.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EE
Deuteranopia (green-blind)
#0072E6
Tritanopia (blue-blind)
#8F6A92
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9d42e9;
/* rgb */ color: rgb(157, 66, 233);
/* oklch */ color: oklch(58.3% 0.239 304.8);
Tailwind
colors: {
  custom: {
    50: '#c07ef1',
    500: '#9d42e9',
    950: '#000000',
  },
}
SCSS
$custom: #9d42e9;
$custom-light: #c07ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d42e9",
  "rgb": {
    "r": 157,
    "g": 66,
    "b": 233
  },
  "hsl": {
    "h": 272.695,
    "s": 79.147,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58279,
    "c": 0.23851,
    "h": 304.8
  },
  "luminance": 0.16948
}

Semantic roles & 50–950 ramp

primary
#9D42E9
secondary
#C0E4A2
accent
#F6328B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9D42E9

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

Preview Lab → · Contrast checker → · Palette generator →

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