#9F42CF#9F42CF

#9F42CF is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.7% C 0.214 H 311.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9F42CF
RGBrgb(159, 66, 207)
HSLhsl(280, 59%, 54%)
HSVhsv(280, 68%, 81%)
CMYKcmyk(23.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(46.68, 60.57, -56.47)
CIE-LCHlch(46.68, 82.81, 317.01°)
OKLaboklab(56.69% 0.1423 -0.1594)
OKLCHoklch(56.69% 0.214 311.8)
XYZxyz(27.5067, 15.7731, 60.6149)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F42CF #72CF42
analogous
#5842CF #9F42CF #CF42B9
triadic
#9F42CF #CF9F42 #42CF9F
tetradic
#9F42CF #CF5842 #72CF42 #42B9CF
square
#9F42CF #CF5842 #72CF42 #42B9CF
split-complementary
#9F42CF #B9CF42 #42CF58
monochromatic
#5A1F78 #7E2BA9 #9F42CF #B873DB #D1A4E8

Accessibility & contrast

On white

5.05
#9F42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9F42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F42CF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F42CF#FFFFFF#000000##FFFFFF
##9F42CF1.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#3270CC
Tritanopia (blue-blind)
#995F84
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f42cf;
/* rgb */ color: rgb(159, 66, 207);
/* oklch */ color: oklch(56.7% 0.214 311.8);
Tailwind
colors: {
  custom: {
    50: '#bf7dde',
    500: '#9f42cf',
    950: '#000000',
  },
}
SCSS
$custom: #9f42cf;
$custom-light: #bf7dde;
$custom-dark: #000000;
JSON
{
  "hex": "#9f42cf",
  "rgb": {
    "r": 159,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 279.574,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56691,
    "c": 0.21368,
    "h": 311.8
  },
  "luminance": 0.15772
}

Semantic roles & 50–950 ramp

primary
#9F42CF
secondary
#ADD598
accent
#E3457B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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