#9F42D8#9F42D8

#9F42D8 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.222 H 309.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9F42D8
RGBrgb(159, 66, 216)
HSLhsl(277, 66%, 55%)
HSVhsv(277, 69%, 85%)
CMYKcmyk(26.4%, 69.4%, 0%, 15.3%)
CIE-LABlab(47.27, 62.49, -60.67)
CIE-LCHlch(47.27, 87.09, 315.85°)
OKLaboklab(57.3% 0.1413 -0.1717)
OKLCHoklch(57.3% 0.222 309.5)
XYZxyz(28.6385, 16.2258, 66.5757)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42D8 #7BD842
analogous
#5442D8 #9F42D8 #D842C6
triadic
#9F42D8 #D89F42 #42D89F
tetradic
#9F42D8 #D85442 #7BD842 #42C6D8
square
#9F42D8 #D85442 #7BD842 #42C6D8
split-complementary
#9F42D8 #C6D842 #42D854
monochromatic
#5C1B84 #8026B7 #9F42D8 #B975E2 #D3A7ED

Accessibility & contrast

On white

4.95
#9F42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9F42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42D8
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42D8#FFFFFF#000000##FFFFFF
##9F42D81.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#2471D5
Tritanopia (blue-blind)
#976388
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9f42d8;
/* rgb */ color: rgb(159, 66, 216);
/* oklch */ color: oklch(57.3% 0.222 309.5);
Tailwind
colors: {
  custom: {
    50: '#c07ee5',
    500: '#9f42d8',
    950: '#000000',
  },
}
SCSS
$custom: #9f42d8;
$custom-light: #c07ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42d8",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 277.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57304,
    "c": 0.22242,
    "h": 309.5
  },
  "luminance": 0.16225
}

Semantic roles & 50–950 ramp

primary
#9F42D8
secondary
#B3DA9C
accent
#E93F80
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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