#9A42CC#9A42CC

#9A42CC is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.209 H 310.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9A42CC
RGBrgb(154, 66, 204)
HSLhsl(278, 58%, 53%)
HSVhsv(278, 68%, 80%)
CMYKcmyk(24.5%, 67.6%, 0%, 20%)
CIE-LABlab(45.81, 58.88, -56.17)
CIE-LCHlch(45.81, 81.37, 316.35°)
OKLaboklab(55.86% 0.1362 -0.1587)
OKLCHoklch(55.86% 0.209 310.6)
XYZxyz(26.1716, 15.1267, 58.6561)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A42CC #74CC42
analogous
#5542CC #9A42CC #CC42B9
triadic
#9A42CC #CC9A42 #42CC9A
tetradic
#9A42CC #CC5542 #74CC42 #42B9CC
square
#9A42CC #CC5542 #74CC42 #42B9CC
split-complementary
#9A42CC #B9CC42 #42CC55
monochromatic
#551F74 #792CA4 #9A42CC #B472D9 #CEA2E6

Accessibility & contrast

On white

5.22
#9A42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9A42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A42CC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A42CC#FFFFFF#000000##FFFFFF
##9A42CC1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#2F6EC9
Tritanopia (blue-blind)
#935F82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a42cc;
/* rgb */ color: rgb(154, 66, 204);
/* oklch */ color: oklch(55.9% 0.209 310.6);
Tailwind
colors: {
  custom: {
    50: '#bc7ddc',
    500: '#9a42cc',
    950: '#000000',
  },
}
SCSS
$custom: #9a42cc;
$custom-light: #bc7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a42cc",
  "rgb": {
    "r": 154,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 278.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.20913,
    "h": 310.6
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#9A42CC
secondary
#ADD397
accent
#E1477F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9A42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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