#9F42EB#9F42EB

#9F42EB is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.7% C 0.241 H 305.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9F42EB
RGBrgb(159, 66, 235)
HSLhsl(273, 81%, 59%)
HSVhsv(273, 72%, 92%)
CMYKcmyk(32.3%, 71.9%, 0%, 7.8%)
CIE-LABlab(48.59, 66.63, -69.30)
CIE-LCHlch(48.59, 96.14, 313.87°)
OKLaboklab(58.66% 0.1385 -0.1971)
OKLCHoklch(58.66% 0.241 305.1)
XYZxyz(31.2383, 17.2657, 80.2681)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42EB #8EEB42
analogous
#4B42EB #9F42EB #EB42E2
triadic
#9F42EB #EB9F42 #42EB9F
tetradic
#9F42EB #EB4B42 #8EEB42 #42E2EB
square
#9F42EB #EB4B42 #8EEB42 #42E2EB
split-complementary
#9F42EB #E2EB42 #42EB4B
monochromatic
#6111A2 #8217D9 #9F42EB #BB79F1 #D7B1F7

Accessibility & contrast

On white

4.72
#9F42EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#9F42EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42EB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42EB#FFFFFF#000000##FFFFFF
##9F42EB1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#916B93
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f42eb;
/* rgb */ color: rgb(159, 66, 235);
/* oklch */ color: oklch(58.7% 0.241 305.1);
Tailwind
colors: {
  custom: {
    50: '#c17ef2',
    500: '#9f42eb',
    950: '#000000',
  },
}
SCSS
$custom: #9f42eb;
$custom-light: #c17ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42eb",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 273.018,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58661,
    "c": 0.24091,
    "h": 305.1
  },
  "luminance": 0.17266
}

Semantic roles & 50–950 ramp

primary
#9F42EB
secondary
#C1E6A3
accent
#F7318A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9F42EB

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

Preview Lab → · Contrast checker → · Palette generator →

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