#9F42CD#9F42CD

#9F42CD is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.6% C 0.212 H 312.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9F42CD
RGBrgb(159, 66, 205)
HSLhsl(280, 58%, 53%)
HSVhsv(280, 68%, 80%)
CMYKcmyk(22.4%, 67.8%, 0%, 19.6%)
CIE-LABlab(46.55, 60.15, -55.52)
CIE-LCHlch(46.55, 81.86, 317.29°)
OKLaboklab(56.56% 0.1425 -0.1566)
OKLCHoklch(56.56% 0.212 312.3)
XYZxyz(27.2637, 15.6759, 59.3353)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42CD #70CD42
analogous
#5942CD #9F42CD #CD42B5
triadic
#9F42CD #CD9F42 #42CD9F
tetradic
#9F42CD #CD5942 #70CD42 #42B5CD
square
#9F42CD #CD5942 #70CD42 #42B5CD
split-complementary
#9F42CD #B5CD42 #42CD59
monochromatic
#591F76 #7E2CA6 #9F42CD #B872DA #D0A3E7

Accessibility & contrast

On white

5.08
#9F42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9F42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42CD
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42CD#FFFFFF#000000##FFFFFF
##9F42CD1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#3570CA
Tritanopia (blue-blind)
#9A5F82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f42cd;
/* rgb */ color: rgb(159, 66, 205);
/* oklch */ color: oklch(56.6% 0.212 312.3);
Tailwind
colors: {
  custom: {
    50: '#bf7ddd',
    500: '#9f42cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f42cd;
$custom-light: #bf7ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42cd",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 280.144,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56557,
    "c": 0.21174,
    "h": 312.3
  },
  "luminance": 0.15675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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