#9F42D5#9F42D5

#9F42D5 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.1% C 0.220 H 310.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9F42D5
RGBrgb(159, 66, 213)
HSLhsl(278, 64%, 55%)
HSVhsv(278, 69%, 84%)
CMYKcmyk(25.4%, 69%, 0%, 16.5%)
CIE-LABlab(47.07, 61.85, -59.27)
CIE-LCHlch(47.07, 85.67, 316.22°)
OKLaboklab(57.1% 0.1417 -0.1676)
OKLCHoklch(57.1% 0.22 310.2)
XYZxyz(28.2542, 16.0721, 64.5517)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42D5 #78D542
analogous
#5642D5 #9F42D5 #D542C2
triadic
#9F42D5 #D59F42 #42D59F
tetradic
#9F42D5 #D55642 #78D542 #42C2D5
square
#9F42D5 #D55642 #78D542 #42C2D5
split-complementary
#9F42D5 #C2D542 #42D556
monochromatic
#5C1C80 #7F28B2 #9F42D5 #B874E0 #D2A6EB

Accessibility & contrast

On white

4.98
#9F42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#9F42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42D5
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42D5#FFFFFF#000000##FFFFFF
##9F42D51.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#2971D2
Tritanopia (blue-blind)
#986287
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f42d5;
/* rgb */ color: rgb(159, 66, 213);
/* oklch */ color: oklch(57.1% 0.220 310.2);
Tailwind
colors: {
  custom: {
    50: '#c07ee3',
    500: '#9f42d5',
    950: '#000000',
  },
}
SCSS
$custom: #9f42d5;
$custom-light: #c07ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42d5",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 277.959,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.57097,
    "c": 0.21951,
    "h": 310.2
  },
  "luminance": 0.16071
}

Semantic roles & 50–950 ramp

primary
#9F42D5
secondary
#B1D89A
accent
#E7417E
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A15
muted
#827C84

Preview Lab

Preview with #9F42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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