#9C42D4#9C42D4

#9C42D4 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.7% C 0.218 H 309.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9C42D4
RGBrgb(156, 66, 212)
HSLhsl(277, 63%, 55%)
HSVhsv(277, 69%, 83%)
CMYKcmyk(26.4%, 68.9%, 0%, 16.9%)
CIE-LABlab(46.60, 61.02, -59.47)
CIE-LCHlch(46.60, 85.21, 315.74°)
OKLaboklab(56.66% 0.138 -0.1683)
OKLCHoklch(56.66% 0.218 309.3)
XYZxyz(27.5398, 15.7183, 63.8577)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42D4 #7AD442
analogous
#5342D4 #9C42D4 #D442C3
triadic
#9C42D4 #D49C42 #42D49C
tetradic
#9C42D4 #D45342 #7AD442 #42C3D4
square
#9C42D4 #D45342 #7AD442 #42C3D4
split-complementary
#9C42D4 #C3D442 #42D453
monochromatic
#591D7F #7C28B1 #9C42D4 #B674DF #D0A6EB

Accessibility & contrast

On white

5.07
#9C42D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9C42D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42D4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42D4#FFFFFF#000000##FFFFFF
##9C42D41.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#2570D1
Tritanopia (blue-blind)
#946286
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9c42d4;
/* rgb */ color: rgb(156, 66, 212);
/* oklch */ color: oklch(56.7% 0.218 309.3);
Tailwind
colors: {
  custom: {
    50: '#be7de2',
    500: '#9c42d4',
    950: '#000000',
  },
}
SCSS
$custom: #9c42d4;
$custom-light: #be7de2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42d4",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 276.986,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56659,
    "c": 0.21764,
    "h": 309.3
  },
  "luminance": 0.15718
}

Semantic roles & 50–950 ramp

primary
#9C42D4
secondary
#B2D89A
accent
#E64281
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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