#9C42DB#9C42DB

#9C42DB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.1% C 0.225 H 307.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9C42DB
RGBrgb(156, 66, 219)
HSLhsl(275, 68%, 56%)
HSVhsv(275, 70%, 86%)
CMYKcmyk(28.8%, 69.9%, 0%, 14.1%)
CIE-LABlab(47.08, 62.55, -62.71)
CIE-LCHlch(47.08, 88.57, 314.93°)
OKLaboklab(57.15% 0.1371 -0.1778)
OKLCHoklch(57.15% 0.225 307.6)
XYZxyz(28.4420, 16.0792, 68.6094)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42DB #81DB42
analogous
#4F42DB #9C42DB #DB42CD
triadic
#9C42DB #DB9C42 #42DB9C
tetradic
#9C42DB #DB4F42 #81DB42 #42CDDB
square
#9C42DB #DB4F42 #81DB42 #42CDDB
split-complementary
#9C42DB #CDDB42 #42DB4F
monochromatic
#5B1A89 #7D24BC #9C42DB #B775E5 #D2A9EF

Accessibility & contrast

On white

4.98
#9C42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9C42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42DB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42DB#FFFFFF#000000##FFFFFF
##9C42DB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#1570D8
Tritanopia (blue-blind)
#92658A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9c42db;
/* rgb */ color: rgb(156, 66, 219);
/* oklch */ color: oklch(57.1% 0.225 307.6);
Tailwind
colors: {
  custom: {
    50: '#be7ee7',
    500: '#9c42db',
    950: '#000000',
  },
}
SCSS
$custom: #9c42db;
$custom-light: #be7ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42db",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 275.294,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57148,
    "c": 0.22453,
    "h": 307.6
  },
  "luminance": 0.16079
}

Semantic roles & 50–950 ramp

primary
#9C42DB
secondary
#B7DC9D
accent
#EB3D85
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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