#9F42D9#9F42D9

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

Color values

HEX#9F42D9
RGBrgb(159, 66, 217)
HSLhsl(277, 67%, 55%)
HSVhsv(277, 70%, 85%)
CMYKcmyk(26.7%, 69.6%, 0%, 14.9%)
CIE-LABlab(47.34, 62.71, -61.13)
CIE-LCHlch(47.34, 87.57, 315.73°)
OKLaboklab(57.37% 0.1412 -0.1731)
OKLCHoklch(57.37% 0.223 309.2)
XYZxyz(28.7682, 16.2776, 67.2586)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42D9 #7CD942
analogous
#5342D9 #9F42D9 #D942C7
triadic
#9F42D9 #D99F42 #42D99F
tetradic
#9F42D9 #D95342 #7CD942 #42C7D9
square
#9F42D9 #D95342 #7CD942 #42C7D9
split-complementary
#9F42D9 #C7D942 #42D953
monochromatic
#5D1B86 #8025B9 #9F42D9 #B975E3 #D3A8ED

Accessibility & contrast

On white

4.93
#9F42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9F42D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42D9
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42D9#FFFFFF#000000##FFFFFF
##9F42D91.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#2271D6
Tritanopia (blue-blind)
#966389
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f42d9;
/* rgb */ color: rgb(159, 66, 217);
/* oklch */ color: oklch(57.4% 0.223 309.2);
Tailwind
colors: {
  custom: {
    50: '#c07ee6',
    500: '#9f42d9',
    950: '#000000',
  },
}
SCSS
$custom: #9f42d9;
$custom-light: #c07ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42d9",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 276.954,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57373,
    "c": 0.22339,
    "h": 309.2
  },
  "luminance": 0.16277
}

Semantic roles & 50–950 ramp

primary
#9F42D9
secondary
#B4DB9C
accent
#E93E80
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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