#9C42E9#9C42E9

#9C42E9 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 58.2% C 0.238 H 304.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9C42E9
RGBrgb(156, 66, 233)
HSLhsl(272, 79%, 59%)
HSVhsv(272, 72%, 91%)
CMYKcmyk(33%, 71.7%, 0%, 8.6%)
CIE-LABlab(48.07, 65.65, -69.05)
CIE-LCHlch(48.07, 95.27, 313.55°)
OKLaboklab(58.16% 0.1349 -0.1965)
OKLCHoklch(58.16% 0.238 304.5)
XYZxyz(30.3631, 16.8477, 78.7273)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42E9 #8FE942
analogous
#4842E9 #9C42E9 #E942E3
triadic
#9C42E9 #E99C42 #42E99C
tetradic
#9C42E9 #E94842 #8FE942 #42E3E9
square
#9C42E9 #E94842 #8FE942 #42E3E9
split-complementary
#9C42E9 #E3E942 #42E948
monochromatic
#5E129E #7E19D5 #9C42E9 #B979EF #D5B0F6

Accessibility & contrast

On white

4.81
#9C42E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9C42E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42E9
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42E9#FFFFFF#000000##FFFFFF
##9C42E91.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c42e9;
/* rgb */ color: rgb(156, 66, 233);
/* oklch */ color: oklch(58.2% 0.238 304.5);
Tailwind
colors: {
  custom: {
    50: '#bf7ef1',
    500: '#9c42e9',
    950: '#000000',
  },
}
SCSS
$custom: #9c42e9;
$custom-light: #bf7ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42e9",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 233
  },
  "hsl": {
    "h": 272.335,
    "s": 79.147,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58162,
    "c": 0.2383,
    "h": 304.5
  },
  "luminance": 0.16848
}

Semantic roles & 50–950 ramp

primary
#9C42E9
secondary
#C1E4A2
accent
#F6328C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9C42E9

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

Preview Lab → · Contrast checker → · Palette generator →

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