#9F42CE#9F42CE

#9F42CE is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.6% C 0.213 H 312.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9F42CE
RGBrgb(159, 66, 206)
HSLhsl(280, 59%, 53%)
HSVhsv(280, 68%, 81%)
CMYKcmyk(22.8%, 68%, 0%, 19.2%)
CIE-LABlab(46.61, 60.36, -55.99)
CIE-LCHlch(46.61, 82.34, 317.15°)
OKLaboklab(56.62% 0.1424 -0.158)
OKLCHoklch(56.62% 0.213 312)
XYZxyz(27.3848, 15.7243, 59.9731)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42CE #71CE42
analogous
#5942CE #9F42CE #CE42B7
triadic
#9F42CE #CE9F42 #42CE9F
tetradic
#9F42CE #CE5942 #71CE42 #42B7CE
square
#9F42CE #CE5942 #71CE42 #42B7CE
split-complementary
#9F42CE #B7CE42 #42CE59
monochromatic
#591F77 #7E2BA7 #9F42CE #B873DB #D0A3E7

Accessibility & contrast

On white

5.07
#9F42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9F42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42CE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42CE#FFFFFF#000000##FFFFFF
##9F42CE1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#3370CB
Tritanopia (blue-blind)
#995F83
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f42ce;
/* rgb */ color: rgb(159, 66, 206);
/* oklch */ color: oklch(56.6% 0.213 312.0);
Tailwind
colors: {
  custom: {
    50: '#bf7dde',
    500: '#9f42ce',
    950: '#000000',
  },
}
SCSS
$custom: #9f42ce;
$custom-light: #bf7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42ce",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 279.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56624,
    "c": 0.21271,
    "h": 312
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#9F42CE
secondary
#ACD498
accent
#E2467A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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