#9F42D6#9F42D6

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

Color values

HEX#9F42D6
RGBrgb(159, 66, 214)
HSLhsl(278, 64%, 55%)
HSVhsv(278, 69%, 84%)
CMYKcmyk(25.7%, 69.2%, 0%, 16.1%)
CIE-LABlab(47.14, 62.06, -59.74)
CIE-LCHlch(47.14, 86.14, 316.09°)
OKLaboklab(57.17% 0.1416 -0.169)
OKLCHoklch(57.17% 0.22 310)
XYZxyz(28.3815, 16.1230, 65.2222)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42D6 #79D642
analogous
#5542D6 #9F42D6 #D642C3
triadic
#9F42D6 #D69F42 #42D69F
tetradic
#9F42D6 #D65542 #79D642 #42C3D6
square
#9F42D6 #D65542 #79D642 #42C3D6
split-complementary
#9F42D6 #C3D642 #42D655
monochromatic
#5C1C82 #7F27B4 #9F42D6 #B974E1 #D2A7EC

Accessibility & contrast

On white

4.97
#9F42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9F42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42D6
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42D6#FFFFFF#000000##FFFFFF
##9F42D61.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#2871D3
Tritanopia (blue-blind)
#976287
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f42d6;
/* rgb */ color: rgb(159, 66, 214);
/* oklch */ color: oklch(57.2% 0.220 310.0);
Tailwind
colors: {
  custom: {
    50: '#c07ee3',
    500: '#9f42d6',
    950: '#000000',
  },
}
SCSS
$custom: #9f42d6;
$custom-light: #c07ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42d6",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 277.703,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57166,
    "c": 0.22048,
    "h": 310
  },
  "luminance": 0.16122
}

Semantic roles & 50–950 ramp

primary
#9F42D6
secondary
#B2D99B
accent
#E7407E
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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