#9F51DA#9F51DA

#9F51DA is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.2% C 0.205 H 307.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9F51DA
RGBrgb(159, 81, 218)
HSLhsl(274, 65%, 59%)
HSVhsv(274, 63%, 85%)
CMYKcmyk(27.1%, 62.8%, 0%, 14.5%)
CIE-LABlab(49.88, 56.06, -57.60)
CIE-LCHlch(49.88, 80.38, 314.22°)
OKLaboklab(59.22% 0.1248 -0.1628)
OKLCHoklch(59.22% 0.205 307.5)
XYZxyz(29.8928, 18.3181, 68.2771)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51DA #8CDA51
analogous
#5A51DA #9F51DA #DA51D0
triadic
#9F51DA #DA9F51 #51DA9F
tetradic
#9F51DA #DA5A51 #8CDA51 #51D0DA
square
#9F51DA #DA5A51 #8CDA51 #51D0DA
split-complementary
#9F51DA #D0DA51 #51DA5A
monochromatic
#601F92 #822AC4 #9F51DA #BB83E5 #D7B6EF

Accessibility & contrast

On white

4.50
#9F51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#9F51DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51DA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51DA#FFFFFF#000000##000000
##9F51DA1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DE
Deuteranopia (green-blind)
#3777D7
Tritanopia (blue-blind)
#966D8E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9f51da;
/* rgb */ color: rgb(159, 81, 218);
/* oklch */ color: oklch(59.2% 0.205 307.5);
Tailwind
colors: {
  custom: {
    50: '#bf86e6',
    500: '#9f51da',
    950: '#000000',
  },
}
SCSS
$custom: #9f51da;
$custom-light: #bf86e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51da",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 274.161,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5922,
    "c": 0.20513,
    "h": 307.5
  },
  "luminance": 0.18318
}

Semantic roles & 50–950 ramp

primary
#9F51DA
secondary
#C0DEA8
accent
#E84088
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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