#9F51E5#9F51E5

#9F51E5 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.0% C 0.217 H 304.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9F51E5
RGBrgb(159, 81, 229)
HSLhsl(272, 74%, 61%)
HSVhsv(272, 65%, 90%)
CMYKcmyk(30.6%, 64.6%, 0%, 10.2%)
CIE-LABlab(50.59, 58.57, -62.70)
CIE-LCHlch(50.59, 85.80, 313.05°)
OKLaboklab(59.95% 0.1241 -0.1778)
OKLCHoklch(59.95% 0.217 304.9)
XYZxyz(31.3802, 18.9131, 76.1110)
Luminance0.1891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51E5 #97E551
analogous
#5551E5 #9F51E5 #E551E1
triadic
#9F51E5 #E59F51 #51E59F
tetradic
#9F51E5 #E55551 #97E551 #51E1E5
square
#9F51E5 #E55551 #97E551 #51E1E5
split-complementary
#9F51E5 #E1E551 #51E555
monochromatic
#6218A3 #8120D8 #9F51E5 #BC86ED #DABBF5

Accessibility & contrast

On white

4.39
#9F51E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#9F51E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51E5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51E5#FFFFFF#000000##000000
##9F51E51.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#2679E2
Tritanopia (blue-blind)
#927194
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9f51e5;
/* rgb */ color: rgb(159, 81, 229);
/* oklch */ color: oklch(60.0% 0.217 304.9);
Tailwind
colors: {
  custom: {
    50: '#c086ee',
    500: '#9f51e5',
    950: '#000000',
  },
}
SCSS
$custom: #9f51e5;
$custom-light: #c086ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51e5",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 271.622,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59954,
    "c": 0.21678,
    "h": 304.9
  },
  "luminance": 0.18913
}

Semantic roles & 50–950 ramp

primary
#9F51E5
secondary
#C7E5AD
accent
#D60F6D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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