#9F42EA#9F42EA

#9F42EA is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.6% C 0.240 H 305.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9F42EA
RGBrgb(159, 66, 234)
HSLhsl(273, 80%, 59%)
HSVhsv(273, 72%, 92%)
CMYKcmyk(32.1%, 71.8%, 0%, 8.2%)
CIE-LABlab(48.52, 66.41, -68.86)
CIE-LCHlch(48.52, 95.67, 313.97°)
OKLaboklab(58.59% 0.1387 -0.1958)
OKLCHoklch(58.59% 0.24 305.3)
XYZxyz(31.0943, 17.2081, 79.5093)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42EA #8DEA42
analogous
#4B42EA #9F42EA #EA42E1
triadic
#9F42EA #EA9F42 #42EA9F
tetradic
#9F42EA #EA4B42 #8DEA42 #42E1EA
square
#9F42EA #EA4B42 #8DEA42 #42E1EA
split-complementary
#9F42EA #E1EA42 #42EA4B
monochromatic
#6012A0 #8218D7 #9F42EA #BB79F0 #D7B0F6

Accessibility & contrast

On white

4.73
#9F42EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#9F42EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42EA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42EA#FFFFFF#000000##FFFFFF
##9F42EA1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#916A92
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f42ea;
/* rgb */ color: rgb(159, 66, 234);
/* oklch */ color: oklch(58.6% 0.240 305.3);
Tailwind
colors: {
  custom: {
    50: '#c17ef2',
    500: '#9f42ea',
    950: '#000000',
  },
}
SCSS
$custom: #9f42ea;
$custom-light: #c17ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42ea",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 273.214,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58588,
    "c": 0.23993,
    "h": 305.3
  },
  "luminance": 0.17208
}

Semantic roles & 50–950 ramp

primary
#9F42EA
secondary
#C0E5A3
accent
#F63189
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9F42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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