#9F42E2#9F42E2

#9F42E2 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 58.0% C 0.232 H 307.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#9F42E2
RGBrgb(159, 66, 226)
HSLhsl(275, 73%, 57%)
HSVhsv(275, 71%, 89%)
CMYKcmyk(29.6%, 70.8%, 0%, 11.4%)
CIE-LABlab(47.95, 64.66, -65.25)
CIE-LCHlch(47.95, 91.86, 314.74°)
OKLaboklab(58.01% 0.14 -0.1852)
OKLCHoklch(58.01% 0.232 307.1)
XYZxyz(29.9708, 16.7587, 73.5926)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42E2 #85E242
analogous
#4F42E2 #9F42E2 #E242D5
triadic
#9F42E2 #E29F42 #42E29F
tetradic
#9F42E2 #E24F42 #85E242 #42D5E2
square
#9F42E2 #E24F42 #85E242 #42D5E2
split-complementary
#9F42E2 #D5E242 #42E24F
monochromatic
#5F1793 #811FC8 #9F42E2 #BA77EA #D5ACF2

Accessibility & contrast

On white

4.83
#9F42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#9F42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42E2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42E2#FFFFFF#000000##FFFFFF
##9F42E21.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#0372DF
Tritanopia (blue-blind)
#94678E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9f42e2;
/* rgb */ color: rgb(159, 66, 226);
/* oklch */ color: oklch(58.0% 0.232 307.1);
Tailwind
colors: {
  custom: {
    50: '#c17eec',
    500: '#9f42e2',
    950: '#000000',
  },
}
SCSS
$custom: #9f42e2;
$custom-light: #c17eec;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42e2",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 274.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58008,
    "c": 0.23215,
    "h": 307.1
  },
  "luminance": 0.16758
}

Semantic roles & 50–950 ramp

primary
#9F42E2
secondary
#BBE09F
accent
#F03885
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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