#9F42CC#9F42CC

#9F42CC is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.211 H 312.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9F42CC
RGBrgb(159, 66, 204)
HSLhsl(280, 58%, 53%)
HSVhsv(280, 68%, 80%)
CMYKcmyk(22.1%, 67.6%, 0%, 20%)
CIE-LABlab(46.48, 59.94, -55.05)
CIE-LCHlch(46.48, 81.39, 317.44°)
OKLaboklab(56.49% 0.1426 -0.1552)
OKLCHoklch(56.49% 0.211 312.6)
XYZxyz(27.1434, 15.6277, 58.7016)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42CC #6FCC42
analogous
#5A42CC #9F42CC #CC42B4
triadic
#9F42CC #CC9F42 #42CC9F
tetradic
#9F42CC #CC5A42 #6FCC42 #42B4CC
square
#9F42CC #CC5A42 #6FCC42 #42B4CC
split-complementary
#9F42CC #B4CC42 #42CC5A
monochromatic
#591F74 #7D2CA4 #9F42CC #B772D9 #D0A2E6

Accessibility & contrast

On white

5.09
#9F42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#9F42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42CC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42CC#FFFFFF#000000##FFFFFF
##9F42CC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#3670C9
Tritanopia (blue-blind)
#9A5E82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f42cc;
/* rgb */ color: rgb(159, 66, 204);
/* oklch */ color: oklch(56.5% 0.211 312.6);
Tailwind
colors: {
  custom: {
    50: '#bf7ddc',
    500: '#9f42cc',
    950: '#000000',
  },
}
SCSS
$custom: #9f42cc;
$custom-light: #bf7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42cc",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 280.435,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.21077,
    "h": 312.6
  },
  "luminance": 0.15627
}

Semantic roles & 50–950 ramp

primary
#9F42CC
secondary
#ABD397
accent
#E14779
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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