#9C42D5#9C42D5

#9C42D5 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.7% C 0.219 H 309.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9C42D5
RGBrgb(156, 66, 213)
HSLhsl(277, 64%, 55%)
HSVhsv(277, 69%, 84%)
CMYKcmyk(26.8%, 69%, 0%, 16.5%)
CIE-LABlab(46.67, 61.24, -59.94)
CIE-LCHlch(46.67, 85.69, 315.61°)
OKLaboklab(56.73% 0.1378 -0.1697)
OKLCHoklch(56.73% 0.219 309.1)
XYZxyz(27.6663, 15.7689, 64.5241)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42D5 #7BD542
analogous
#5342D5 #9C42D5 #D542C4
triadic
#9C42D5 #D59C42 #42D59C
tetradic
#9C42D5 #D55342 #7BD542 #42C4D5
square
#9C42D5 #D55342 #7BD542 #42C4D5
split-complementary
#9C42D5 #C4D542 #42D553
monochromatic
#591C80 #7C28B2 #9C42D5 #B674E0 #D0A6EB

Accessibility & contrast

On white

5.06
#9C42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9C42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42D5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42D5#FFFFFF#000000##FFFFFF
##9C42D51.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#2470D2
Tritanopia (blue-blind)
#946287
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9c42d5;
/* rgb */ color: rgb(156, 66, 213);
/* oklch */ color: oklch(56.7% 0.219 309.1);
Tailwind
colors: {
  custom: {
    50: '#be7de3',
    500: '#9c42d5',
    950: '#000000',
  },
}
SCSS
$custom: #9c42d5;
$custom-light: #be7de3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42d5",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 276.735,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56728,
    "c": 0.21862,
    "h": 309.1
  },
  "luminance": 0.15768
}

Semantic roles & 50–950 ramp

primary
#9C42D5
secondary
#B2D89A
accent
#E74181
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A15
muted
#827C84

Preview Lab

Preview with #9C42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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