#9C42CA#9C42CA

#9C42CA is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.208 H 312.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9C42CA
RGBrgb(156, 66, 202)
HSLhsl(280, 56%, 53%)
HSVhsv(280, 67%, 79%)
CMYKcmyk(22.8%, 67.3%, 0%, 20.8%)
CIE-LABlab(45.95, 58.88, -54.78)
CIE-LCHlch(45.95, 80.42, 317.07°)
OKLaboklab(55.98% 0.1389 -0.1545)
OKLCHoklch(55.98% 0.208 312)
XYZxyz(26.3172, 15.2293, 57.4189)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C42CA #70CA42
analogous
#5842CA #9C42CA #CA42B4
triadic
#9C42CA #CA9C42 #42CA9C
tetradic
#9C42CA #CA5842 #70CA42 #42B4CA
square
#9C42CA #CA5842 #70CA42 #42B4CA
split-complementary
#9C42CA #B4CA42 #42CA58
monochromatic
#562072 #7A2DA2 #9C42CA #B572D7 #CEA2E5

Accessibility & contrast

On white

5.19
#9C42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9C42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C42CA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C42CA#FFFFFF#000000##FFFFFF
##9C42CA1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#346FC7
Tritanopia (blue-blind)
#975E81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c42ca;
/* rgb */ color: rgb(156, 66, 202);
/* oklch */ color: oklch(56.0% 0.208 312.0);
Tailwind
colors: {
  custom: {
    50: '#bd7ddb',
    500: '#9c42ca',
    950: '#000000',
  },
}
SCSS
$custom: #9c42ca;
$custom-light: #bd7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9c42ca",
  "rgb": {
    "r": 156,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 279.706,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55981,
    "c": 0.20782,
    "h": 312
  },
  "luminance": 0.15229
}

Semantic roles & 50–950 ramp

primary
#9C42CA
secondary
#AAD196
accent
#DF487B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9C42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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