#9C42E2#9C42E2

#9C42E2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.231 H 306.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9C42E2
RGBrgb(156, 66, 226)
HSLhsl(274, 73%, 57%)
HSVhsv(274, 71%, 89%)
CMYKcmyk(31%, 70.8%, 0%, 11.4%)
CIE-LABlab(47.57, 64.09, -65.90)
CIE-LCHlch(47.57, 91.92, 314.20°)
OKLaboklab(57.65% 0.136 -0.1872)
OKLCHoklch(57.65% 0.231 306)
XYZxyz(29.3830, 16.4556, 73.5651)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42E2 #88E242
analogous
#4C42E2 #9C42E2 #E242D8
triadic
#9C42E2 #E29C42 #42E29C
tetradic
#9C42E2 #E24C42 #88E242 #42D8E2
square
#9C42E2 #E24C42 #88E242 #42D8E2
split-complementary
#9C42E2 #D8E242 #42E24C
monochromatic
#5D1793 #7E1FC8 #9C42E2 #B877EA #D4ACF2

Accessibility & contrast

On white

4.89
#9C42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#9C42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42E2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42E2#FFFFFF#000000##FFFFFF
##9C42E21.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c42e2;
/* rgb */ color: rgb(156, 66, 226);
/* oklch */ color: oklch(57.6% 0.231 306.0);
Tailwind
colors: {
  custom: {
    50: '#bf7eec',
    500: '#9c42e2',
    950: '#000000',
  },
}
SCSS
$custom: #9c42e2;
$custom-light: #bf7eec;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42e2",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 273.75,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5765,
    "c": 0.23141,
    "h": 306
  },
  "luminance": 0.16455
}

Semantic roles & 50–950 ramp

primary
#9C42E2
secondary
#BCE09F
accent
#F03888
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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