#9C42E1#9C42E1

#9C42E1 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.6% C 0.230 H 306.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9C42E1
RGBrgb(156, 66, 225)
HSLhsl(274, 73%, 57%)
HSVhsv(274, 71%, 88%)
CMYKcmyk(30.7%, 70.7%, 0%, 11.8%)
CIE-LABlab(47.50, 63.87, -65.44)
CIE-LCHlch(47.50, 91.44, 314.30°)
OKLaboklab(57.58% 0.1362 -0.1859)
OKLCHoklch(57.58% 0.23 306.2)
XYZxyz(29.2462, 16.4009, 72.8445)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42E1 #87E142
analogous
#4C42E1 #9C42E1 #E142D7
triadic
#9C42E1 #E19C42 #42E19C
tetradic
#9C42E1 #E14C42 #87E142 #42D7E1
square
#9C42E1 #E14C42 #87E142 #42D7E1
split-complementary
#9C42E1 #D7E142 #42E14C
monochromatic
#5C1792 #7E1FC6 #9C42E1 #B877E9 #D3ACF2

Accessibility & contrast

On white

4.91
#9C42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9C42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42E1
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42E1#FFFFFF#000000##FFFFFF
##9C42E11.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#0071DE
Tritanopia (blue-blind)
#90678D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9c42e1;
/* rgb */ color: rgb(156, 66, 225);
/* oklch */ color: oklch(57.6% 0.230 306.2);
Tailwind
colors: {
  custom: {
    50: '#bf7eeb',
    500: '#9c42e1',
    950: '#000000',
  },
}
SCSS
$custom: #9c42e1;
$custom-light: #bf7eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42e1",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 273.962,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57577,
    "c": 0.23043,
    "h": 306.2
  },
  "luminance": 0.16401
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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