#9F42DA#9F42DA

#9F42DA is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.4% C 0.224 H 309.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9F42DA
RGBrgb(159, 66, 218)
HSLhsl(277, 67%, 56%)
HSVhsv(277, 70%, 85%)
CMYKcmyk(27.1%, 69.7%, 0%, 14.5%)
CIE-LABlab(47.40, 62.92, -61.59)
CIE-LCHlch(47.40, 88.05, 315.61°)
OKLaboklab(57.44% 0.1411 -0.1745)
OKLCHoklch(57.44% 0.224 309)
XYZxyz(28.8986, 16.3298, 67.9457)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42DA #7DDA42
analogous
#5342DA #9F42DA #DA42C9
triadic
#9F42DA #DA9F42 #42DA9F
tetradic
#9F42DA #DA5342 #7DDA42 #42C9DA
square
#9F42DA #DA5342 #7DDA42 #42C9DA
split-complementary
#9F42DA #C9DA42 #42DA53
monochromatic
#5D1A87 #8024BA #9F42DA #B975E4 #D3A8EE

Accessibility & contrast

On white

4.92
#9F42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#9F42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42DA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42DA#FFFFFF#000000##FFFFFF
##9F42DA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#2072D7
Tritanopia (blue-blind)
#96648A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f42da;
/* rgb */ color: rgb(159, 66, 218);
/* oklch */ color: oklch(57.4% 0.224 309.0);
Tailwind
colors: {
  custom: {
    50: '#c07ee6',
    500: '#9f42da',
    950: '#000000',
  },
}
SCSS
$custom: #9f42da;
$custom-light: #c07ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42da",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 276.711,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57443,
    "c": 0.22437,
    "h": 309
  },
  "luminance": 0.16329
}

Semantic roles & 50–950 ramp

primary
#9F42DA
secondary
#B5DB9C
accent
#EA3E81
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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