#9F51E4#9F51E4

#9F51E4 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.9% C 0.216 H 305.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9F51E4
RGBrgb(159, 81, 228)
HSLhsl(272, 73%, 61%)
HSVhsv(272, 64%, 89%)
CMYKcmyk(30.3%, 64.5%, 0%, 10.6%)
CIE-LABlab(50.52, 58.34, -62.24)
CIE-LCHlch(50.52, 85.30, 313.15°)
OKLaboklab(59.89% 0.1241 -0.1764)
OKLCHoklch(59.89% 0.216 305.1)
XYZxyz(31.2410, 18.8574, 75.3778)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51E4 #96E451
analogous
#5551E4 #9F51E4 #E451DF
triadic
#9F51E4 #E49F51 #51E49F
tetradic
#9F51E4 #E45551 #96E451 #51DFE4
square
#9F51E4 #E45551 #96E451 #51DFE4
split-complementary
#9F51E4 #DFE451 #51E455
monochromatic
#6119A2 #8121D7 #9F51E4 #BC86EC #D9BBF4

Accessibility & contrast

On white

4.40
#9F51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#9F51E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51E4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51E4#FFFFFF#000000##000000
##9F51E41.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#2878E1
Tritanopia (blue-blind)
#937194
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9f51e4;
/* rgb */ color: rgb(159, 81, 228);
/* oklch */ color: oklch(59.9% 0.216 305.1);
Tailwind
colors: {
  custom: {
    50: '#c086ed',
    500: '#9f51e4',
    950: '#000000',
  },
}
SCSS
$custom: #9f51e4;
$custom-light: #c086ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51e4",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 271.837,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59886,
    "c": 0.21572,
    "h": 305.1
  },
  "luminance": 0.18857
}

Semantic roles & 50–950 ramp

primary
#9F51E4
secondary
#C7E4AC
accent
#D5106D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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