#9F42DD#9F42DD

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

Color values

HEX#9F42DD
RGBrgb(159, 66, 221)
HSLhsl(276, 70%, 56%)
HSVhsv(276, 70%, 87%)
CMYKcmyk(28.1%, 70.1%, 0%, 13.3%)
CIE-LABlab(47.61, 63.57, -62.97)
CIE-LCHlch(47.61, 89.48, 315.27°)
OKLaboklab(57.65% 0.1407 -0.1785)
OKLCHoklch(57.65% 0.227 308.2)
XYZxyz(29.2947, 16.4883, 70.0319)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42DD #80DD42
analogous
#5242DD #9F42DD #DD42CE
triadic
#9F42DD #DD9F42 #42DD9F
tetradic
#9F42DD #DD5242 #80DD42 #42CEDD
square
#9F42DD #DD5242 #80DD42 #42CEDD
split-complementary
#9F42DD #CEDD42 #42DD52
monochromatic
#5E198C #8122BF #9F42DD #B976E6 #D4AAF0

Accessibility & contrast

On white

4.89
#9F42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9F42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42DD
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42DD#FFFFFF#000000##FFFFFF
##9F42DD1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE1
Deuteranopia (green-blind)
#1872DA
Tritanopia (blue-blind)
#95658B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f42dd;
/* rgb */ color: rgb(159, 66, 221);
/* oklch */ color: oklch(57.7% 0.227 308.2);
Tailwind
colors: {
  custom: {
    50: '#c07ee8',
    500: '#9f42dd',
    950: '#000000',
  },
}
SCSS
$custom: #9f42dd;
$custom-light: #c07ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42dd",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 276,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57653,
    "c": 0.22729,
    "h": 308.2
  },
  "luminance": 0.16488
}

Semantic roles & 50–950 ramp

primary
#9F42DD
secondary
#B7DD9D
accent
#EC3B82
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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