#9F42DE#9F42DE

#9F42DE is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.7% C 0.228 H 308.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9F42DE
RGBrgb(159, 66, 222)
HSLhsl(276, 70%, 56%)
HSVhsv(276, 70%, 87%)
CMYKcmyk(28.4%, 70.3%, 0%, 12.9%)
CIE-LABlab(47.68, 63.79, -63.43)
CIE-LCHlch(47.68, 89.95, 315.16°)
OKLaboklab(57.72% 0.1406 -0.1798)
OKLCHoklch(57.72% 0.228 308)
XYZxyz(29.4284, 16.5417, 70.7357)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42DE #81DE42
analogous
#5142DE #9F42DE #DE42CF
triadic
#9F42DE #DE9F42 #42DE9F
tetradic
#9F42DE #DE5142 #81DE42 #42CFDE
square
#9F42DE #DE5142 #81DE42 #42CFDE
split-complementary
#9F42DE #CFDE42 #42DE51
monochromatic
#5E198D #8122C1 #9F42DE #B976E7 #D4AAF0

Accessibility & contrast

On white

4.87
#9F42DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9F42DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42DE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42DE#FFFFFF#000000##FFFFFF
##9F42DE1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#1572DB
Tritanopia (blue-blind)
#95658C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f42de;
/* rgb */ color: rgb(159, 66, 222);
/* oklch */ color: oklch(57.7% 0.228 308.0);
Tailwind
colors: {
  custom: {
    50: '#c07ee9',
    500: '#9f42de',
    950: '#000000',
  },
}
SCSS
$custom: #9f42de;
$custom-light: #c07ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42de",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 275.769,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57723,
    "c": 0.22825,
    "h": 308
  },
  "luminance": 0.16541
}

Semantic roles & 50–950 ramp

primary
#9F42DE
secondary
#B8DE9E
accent
#ED3B83
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42DE

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

Preview Lab → · Contrast checker → · Palette generator →

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