#9F42C8#9F42C8

#9F42C8 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.2% C 0.207 H 313.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9F42C8
RGBrgb(159, 66, 200)
HSLhsl(282, 55%, 52%)
HSVhsv(282, 67%, 78%)
CMYKcmyk(20.5%, 67%, 0%, 21.6%)
CIE-LABlab(46.23, 59.11, -53.15)
CIE-LCHlch(46.23, 79.49, 318.04°)
OKLaboklab(56.23% 0.1429 -0.1497)
OKLCHoklch(56.23% 0.207 313.7)
XYZxyz(26.6698, 15.4383, 56.2074)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42C8 #6BC842
analogous
#5C42C8 #9F42C8 #C842AE
triadic
#9F42C8 #C89F42 #42C89F
tetradic
#9F42C8 #C85C42 #6BC842 #42AEC8
square
#9F42C8 #C85C42 #6BC842 #42AEC8
split-complementary
#9F42C8 #AEC842 #42C85C
monochromatic
#57206F #7C2E9F #9F42C8 #B771D6 #CFA1E4

Accessibility & contrast

On white

5.14
#9F42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9F42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42C8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42C8#FFFFFF#000000##FFFFFF
##9F42C81.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#3A70C5
Tritanopia (blue-blind)
#9B5D80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f42c8;
/* rgb */ color: rgb(159, 66, 200);
/* oklch */ color: oklch(56.2% 0.207 313.7);
Tailwind
colors: {
  custom: {
    50: '#bf7dd9',
    500: '#9f42c8',
    950: '#000000',
  },
}
SCSS
$custom: #9f42c8;
$custom-light: #bf7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42c8",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 281.642,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56228,
    "c": 0.20691,
    "h": 313.7
  },
  "luminance": 0.15437
}

Semantic roles & 50–950 ramp

primary
#9F42C8
secondary
#A8D096
accent
#DE4A77
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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