#9F42CA#9F42CA

#9F42CA is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.209 H 313.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9F42CA
RGBrgb(159, 66, 202)
HSLhsl(281, 56%, 53%)
HSVhsv(281, 67%, 79%)
CMYKcmyk(21.3%, 67.3%, 0%, 20.8%)
CIE-LABlab(46.35, 59.53, -54.10)
CIE-LCHlch(46.35, 80.44, 317.73°)
OKLaboklab(56.36% 0.1427 -0.1525)
OKLCHoklch(56.36% 0.209 313.1)
XYZxyz(26.9051, 15.5324, 57.4464)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42CA #6DCA42
analogous
#5B42CA #9F42CA #CA42B1
triadic
#9F42CA #CA9F42 #42CA9F
tetradic
#9F42CA #CA5B42 #6DCA42 #42B1CA
square
#9F42CA #CA5B42 #6DCA42 #42B1CA
split-complementary
#9F42CA #B1CA42 #42CA5B
monochromatic
#582072 #7D2DA2 #9F42CA #B772D7 #D0A2E5

Accessibility & contrast

On white

5.11
#9F42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9F42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42CA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42CA#FFFFFF#000000##FFFFFF
##9F42CA1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#3870C7
Tritanopia (blue-blind)
#9B5E81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f42ca;
/* rgb */ color: rgb(159, 66, 202);
/* oklch */ color: oklch(56.4% 0.209 313.1);
Tailwind
colors: {
  custom: {
    50: '#bf7ddb',
    500: '#9f42ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f42ca;
$custom-light: #bf7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42ca",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 281.029,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56359,
    "c": 0.20884,
    "h": 313.1
  },
  "luminance": 0.15532
}

Semantic roles & 50–950 ramp

primary
#9F42CA
secondary
#A9D196
accent
#DF4878
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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