#9C42CF#9C42CF

#9C42CF is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.213 H 310.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9C42CF
RGBrgb(156, 66, 207)
HSLhsl(278, 59%, 54%)
HSVhsv(278, 68%, 81%)
CMYKcmyk(24.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(46.27, 59.94, -57.14)
CIE-LCHlch(46.27, 82.81, 316.37°)
OKLaboklab(56.32% 0.1385 -0.1615)
OKLCHoklch(56.32% 0.213 310.6)
XYZxyz(26.9188, 15.4699, 60.5873)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42CF #75CF42
analogous
#5542CF #9C42CF #CF42BB
triadic
#9C42CF #CF9C42 #42CF9C
tetradic
#9C42CF #CF5542 #75CF42 #42BBCF
square
#9C42CF #CF5542 #75CF42 #42BBCF
split-complementary
#9C42CF #BBCF42 #42CF55
monochromatic
#581F78 #7B2BA9 #9C42CF #B673DB #CFA4E8

Accessibility & contrast

On white

5.13
#9C42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9C42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42CF
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42CF#FFFFFF#000000##FFFFFF
##9C42CF1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#2D6FCC
Tritanopia (blue-blind)
#956084
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9c42cf;
/* rgb */ color: rgb(156, 66, 207);
/* oklch */ color: oklch(56.3% 0.213 310.6);
Tailwind
colors: {
  custom: {
    50: '#bd7dde',
    500: '#9c42cf',
    950: '#000000',
  },
}
SCSS
$custom: #9c42cf;
$custom-light: #bd7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42cf",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 278.298,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56317,
    "c": 0.21272,
    "h": 310.6
  },
  "luminance": 0.15469
}

Semantic roles & 50–950 ramp

primary
#9C42CF
secondary
#AED598
accent
#E3457E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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