#9C42E3#9C42E3

#9C42E3 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.7% C 0.232 H 305.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9C42E3
RGBrgb(156, 66, 227)
HSLhsl(274, 74%, 57%)
HSVhsv(274, 71%, 89%)
CMYKcmyk(31.3%, 70.9%, 0%, 11%)
CIE-LABlab(47.64, 64.31, -66.35)
CIE-LCHlch(47.64, 92.40, 314.11°)
OKLaboklab(57.72% 0.1359 -0.1885)
OKLCHoklch(57.72% 0.232 305.8)
XYZxyz(29.5206, 16.5106, 74.2898)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42E3 #89E342
analogous
#4B42E3 #9C42E3 #E342DA
triadic
#9C42E3 #E39C42 #42E39C
tetradic
#9C42E3 #E34B42 #89E342 #42DAE3
square
#9C42E3 #E34B42 #89E342 #42DAE3
split-complementary
#9C42E3 #DAE342 #42E34B
monochromatic
#5D1695 #7E1ECA #9C42E3 #B877EB #D4ADF3

Accessibility & contrast

On white

4.88
#9C42E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9C42E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42E3
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42E3#FFFFFF#000000##FFFFFF
##9C42E31.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#8F688F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9c42e3;
/* rgb */ color: rgb(156, 66, 227);
/* oklch */ color: oklch(57.7% 0.232 305.8);
Tailwind
colors: {
  custom: {
    50: '#bf7eed',
    500: '#9c42e3',
    950: '#000000',
  },
}
SCSS
$custom: #9c42e3;
$custom-light: #bf7eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42e3",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 273.54,
    "s": 74.194,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57722,
    "c": 0.2324,
    "h": 305.8
  },
  "luminance": 0.1651
}

Semantic roles & 50–950 ramp

primary
#9C42E3
secondary
#BDE1A0
accent
#F13789
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C42E3

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

Preview Lab → · Contrast checker → · Palette generator →

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