#9C42CB#9C42CB

#9C42CB is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.209 H 311.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9C42CB
RGBrgb(156, 66, 203)
HSLhsl(279, 57%, 53%)
HSVhsv(279, 67%, 80%)
CMYKcmyk(23.2%, 67.5%, 0%, 20.4%)
CIE-LABlab(46.01, 59.09, -55.25)
CIE-LCHlch(46.01, 80.90, 316.92°)
OKLaboklab(56.05% 0.1389 -0.1559)
OKLCHoklch(56.05% 0.209 311.7)
XYZxyz(26.4360, 15.2768, 58.0445)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42CB #71CB42
analogous
#5742CB #9C42CB #CB42B5
triadic
#9C42CB #CB9C42 #42CB9C
tetradic
#9C42CB #CB5742 #71CB42 #42B5CB
square
#9C42CB #CB5742 #71CB42 #42B5CB
split-complementary
#9C42CB #B5CB42 #42CB57
monochromatic
#562073 #7A2DA3 #9C42CB #B572D8 #CEA2E5

Accessibility & contrast

On white

5.18
#9C42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9C42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42CB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42CB#FFFFFF#000000##FFFFFF
##9C42CB1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#336FC8
Tritanopia (blue-blind)
#965E81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c42cb;
/* rgb */ color: rgb(156, 66, 203);
/* oklch */ color: oklch(56.0% 0.209 311.7);
Tailwind
colors: {
  custom: {
    50: '#bd7ddc',
    500: '#9c42cb',
    950: '#000000',
  },
}
SCSS
$custom: #9c42cb;
$custom-light: #bd7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42cb",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 279.416,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56047,
    "c": 0.2088,
    "h": 311.7
  },
  "luminance": 0.15276
}

Semantic roles & 50–950 ramp

primary
#9C42CB
secondary
#ABD297
accent
#E0487C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9C42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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