#9F42BC#9F42BC

#9F42BC is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.195 H 317.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9F42BC
RGBrgb(159, 66, 188)
HSLhsl(286, 48%, 50%)
HSVhsv(286, 65%, 74%)
CMYKcmyk(15.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(45.50, 56.66, -47.35)
CIE-LCHlch(45.50, 73.84, 320.11°)
OKLaboklab(55.47% 0.1434 -0.1327)
OKLCHoklch(55.47% 0.195 317.2)
XYZxyz(25.3221, 14.8992, 49.1092)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42BC #5FBC42
analogous
#6242BC #9F42BC #BC429C
triadic
#9F42BC #BC9F42 #42BC9F
tetradic
#9F42BC #BC6242 #5FBC42 #429CBC
square
#9F42BC #BC6242 #5FBC42 #429CBC
split-complementary
#9F42BC #9CBC42 #42BC62
monochromatic
#522261 #79328F #9F42BC #B66FCC #CD9CDC

Accessibility & contrast

On white

5.28
#9F42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9F42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42BC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42BC#FFFFFF#000000##FFFFFF
##9F42BC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1466C0
Deuteranopia (green-blind)
#456FB9
Tritanopia (blue-blind)
#9E5879
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9f42bc;
/* rgb */ color: rgb(159, 66, 188);
/* oklch */ color: oklch(55.5% 0.195 317.2);
Tailwind
colors: {
  custom: {
    50: '#bf7dd1',
    500: '#9f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #9f42bc;
$custom-light: #bf7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42bc",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 285.738,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55466,
    "c": 0.19537,
    "h": 317.2
  },
  "luminance": 0.14898
}

Semantic roles & 50–950 ramp

primary
#9F42BC
secondary
#9EC991
accent
#D85070
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #9F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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