#9F51DC#9F51DC

#9F51DC is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.4% C 0.207 H 307.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9F51DC
RGBrgb(159, 81, 220)
HSLhsl(274, 67%, 59%)
HSVhsv(274, 63%, 86%)
CMYKcmyk(27.7%, 63.2%, 0%, 13.7%)
CIE-LABlab(50.01, 56.51, -58.53)
CIE-LCHlch(50.01, 81.36, 313.99°)
OKLaboklab(59.35% 0.1247 -0.1655)
OKLCHoklch(59.35% 0.207 307)
XYZxyz(30.1561, 18.4234, 69.6637)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51DC #8EDC51
analogous
#5A51DC #9F51DC #DC51D4
triadic
#9F51DC #DC9F51 #51DC9F
tetradic
#9F51DC #DC5A51 #8EDC51 #51D4DC
square
#9F51DC #DC5A51 #8EDC51 #51D4DC
split-complementary
#9F51DC #D4DC51 #51DC5A
monochromatic
#611E95 #8228C8 #9F51DC #BB84E6 #D7B7F0

Accessibility & contrast

On white

4.48
#9F51DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#9F51DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51DC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51DC#FFFFFF#000000##000000
##9F51DC1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#3578D9
Tritanopia (blue-blind)
#956E8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9f51dc;
/* rgb */ color: rgb(159, 81, 220);
/* oklch */ color: oklch(59.4% 0.207 307.0);
Tailwind
colors: {
  custom: {
    50: '#bf86e8',
    500: '#9f51dc',
    950: '#000000',
  },
}
SCSS
$custom: #9f51dc;
$custom-light: #bf86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51dc",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 273.669,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59351,
    "c": 0.20725,
    "h": 307
  },
  "luminance": 0.18423
}

Semantic roles & 50–950 ramp

primary
#9F51DC
secondary
#C1E0A9
accent
#E93E89
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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