#9C42E4#9C42E4

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

Color values

HEX#9C42E4
RGBrgb(156, 66, 228)
HSLhsl(273, 75%, 58%)
HSVhsv(273, 71%, 89%)
CMYKcmyk(31.6%, 71.1%, 0%, 10.6%)
CIE-LABlab(47.71, 64.53, -66.80)
CIE-LCHlch(47.71, 92.88, 314.01°)
OKLaboklab(57.79% 0.1357 -0.1899)
OKLCHoklch(57.79% 0.233 305.6)
XYZxyz(29.6590, 16.5660, 75.0188)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42E4 #8AE442
analogous
#4B42E4 #9C42E4 #E442DB
triadic
#9C42E4 #E49C42 #42E49C
tetradic
#9C42E4 #E44B42 #8AE442 #42DBE4
square
#9C42E4 #E44B42 #8AE442 #42DBE4
split-complementary
#9C42E4 #DBE442 #42E44B
monochromatic
#5D1596 #7E1DCC #9C42E4 #B878EC #D4ADF3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C42E4#FFFFFF#000000##FFFFFF
##9C42E41.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)
#006FE9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#8F688F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9c42e4;
/* rgb */ color: rgb(156, 66, 228);
/* oklch */ color: oklch(57.8% 0.233 305.6);
Tailwind
colors: {
  custom: {
    50: '#bf7eed',
    500: '#9c42e4',
    950: '#000000',
  },
}
SCSS
$custom: #9c42e4;
$custom-light: #bf7eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42e4",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 228
  },
  "hsl": {
    "h": 273.333,
    "s": 75,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57795,
    "c": 0.23338,
    "h": 305.6
  },
  "luminance": 0.16566
}

Semantic roles & 50–950 ramp

primary
#9C42E4
secondary
#BDE2A0
accent
#F23689
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C42E4

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

Preview Lab → · Contrast checker → · Palette generator →

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