#9F42D7#9F42D7

#9F42D7 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.2% C 0.221 H 309.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9F42D7
RGBrgb(159, 66, 215)
HSLhsl(277, 65%, 55%)
HSVhsv(277, 69%, 84%)
CMYKcmyk(26%, 69.3%, 0%, 15.7%)
CIE-LABlab(47.20, 62.28, -60.20)
CIE-LCHlch(47.20, 86.62, 315.97°)
OKLaboklab(57.24% 0.1415 -0.1704)
OKLCHoklch(57.24% 0.221 309.7)
XYZxyz(28.5096, 16.1742, 65.8969)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42D7 #7AD742
analogous
#5542D7 #9F42D7 #D742C4
triadic
#9F42D7 #D79F42 #42D79F
tetradic
#9F42D7 #D75542 #7AD742 #42C4D7
square
#9F42D7 #D75542 #7AD742 #42C4D7
split-complementary
#9F42D7 #C4D742 #42D755
monochromatic
#5C1C83 #8026B5 #9F42D7 #B975E2 #D2A7EC

Accessibility & contrast

On white

4.96
#9F42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9F42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42D7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42D7#FFFFFF#000000##FFFFFF
##9F42D71.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#2671D4
Tritanopia (blue-blind)
#976388
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f42d7;
/* rgb */ color: rgb(159, 66, 215);
/* oklch */ color: oklch(57.2% 0.221 309.7);
Tailwind
colors: {
  custom: {
    50: '#c07ee4',
    500: '#9f42d7',
    950: '#000000',
  },
}
SCSS
$custom: #9f42d7;
$custom-light: #c07ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42d7",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 277.45,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57235,
    "c": 0.22145,
    "h": 309.7
  },
  "luminance": 0.16174
}

Semantic roles & 50–950 ramp

primary
#9F42D7
secondary
#B3DA9B
accent
#E8407F
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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