#9F51DE#9F51DE

#9F51DE is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.5% C 0.209 H 306.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#9F51DE
RGBrgb(159, 81, 222)
HSLhsl(273, 68%, 59%)
HSVhsv(273, 64%, 87%)
CMYKcmyk(28.4%, 63.5%, 0%, 12.9%)
CIE-LABlab(50.13, 56.97, -59.46)
CIE-LCHlch(50.13, 82.35, 313.77°)
OKLaboklab(59.48% 0.1246 -0.1683)
OKLCHoklch(59.48% 0.209 306.5)
XYZxyz(30.4225, 18.5300, 71.0670)
Luminance0.1853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51DE #90DE51
analogous
#5851DE #9F51DE #DE51D7
triadic
#9F51DE #DE9F51 #51DE9F
tetradic
#9F51DE #DE5851 #90DE51 #51D7DE
square
#9F51DE #DE5851 #90DE51 #51D7DE
split-complementary
#9F51DE #D7DE51 #51DE58
monochromatic
#611D98 #8227CB #9F51DE #BB84E8 #D8B8F2

Accessibility & contrast

On white

4.46
#9F51DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#9F51DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51DE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51DE#FFFFFF#000000##000000
##9F51DE1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E2
Deuteranopia (green-blind)
#3278DB
Tritanopia (blue-blind)
#956E90
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9f51de;
/* rgb */ color: rgb(159, 81, 222);
/* oklch */ color: oklch(59.5% 0.209 306.5);
Tailwind
colors: {
  custom: {
    50: '#c086e9',
    500: '#9f51de',
    950: '#000000',
  },
}
SCSS
$custom: #9f51de;
$custom-light: #c086e9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51de",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 273.191,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59483,
    "c": 0.20937,
    "h": 306.5
  },
  "luminance": 0.1853
}

Semantic roles & 50–950 ramp

primary
#9F51DE
secondary
#C2E1AA
accent
#EB3D8B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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