#9F51DD#9F51DD

#9F51DD is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.4% C 0.208 H 306.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9F51DD
RGBrgb(159, 81, 221)
HSLhsl(273, 67%, 59%)
HSVhsv(273, 63%, 87%)
CMYKcmyk(28.1%, 63.3%, 0%, 13.3%)
CIE-LABlab(50.07, 56.74, -59.00)
CIE-LCHlch(50.07, 81.86, 313.88°)
OKLaboklab(59.42% 0.1246 -0.1669)
OKLCHoklch(59.42% 0.208 306.7)
XYZxyz(30.2889, 18.4766, 70.3633)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51DD #8FDD51
analogous
#5951DD #9F51DD #DD51D5
triadic
#9F51DD #DD9F51 #51DD9F
tetradic
#9F51DD #DD5951 #8FDD51 #51D5DD
square
#9F51DD #DD5951 #8FDD51 #51D5DD
split-complementary
#9F51DD #D5DD51 #51DD59
monochromatic
#611D96 #8227C9 #9F51DD #BB84E7 #D7B7F1

Accessibility & contrast

On white

4.47
#9F51DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#9F51DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51DD
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51DD#FFFFFF#000000##000000
##9F51DD1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E1
Deuteranopia (green-blind)
#3378DA
Tritanopia (blue-blind)
#956E90
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9f51dd;
/* rgb */ color: rgb(159, 81, 221);
/* oklch */ color: oklch(59.4% 0.208 306.7);
Tailwind
colors: {
  custom: {
    50: '#c086e8',
    500: '#9f51dd',
    950: '#000000',
  },
}
SCSS
$custom: #9f51dd;
$custom-light: #c086e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51dd",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 273.429,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59417,
    "c": 0.20831,
    "h": 306.7
  },
  "luminance": 0.18476
}

Semantic roles & 50–950 ramp

primary
#9F51DD
secondary
#C2E0AA
accent
#EA3E8A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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