#9F51EC#9F51EC

#9F51EC is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.4% C 0.224 H 303.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9F51EC
RGBrgb(159, 81, 236)
HSLhsl(270, 80%, 62%)
HSVhsv(270, 66%, 93%)
CMYKcmyk(32.6%, 65.7%, 0%, 7.5%)
CIE-LABlab(51.05, 60.19, -65.89)
CIE-LCHlch(51.05, 89.24, 312.41°)
OKLaboklab(60.44% 0.1234 -0.1871)
OKLCHoklch(60.44% 0.224 303.4)
XYZxyz(32.3773, 19.3120, 81.3625)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51EC #9EEC51
analogous
#5251EC #9F51EC #EC51EB
triadic
#9F51EC #EC9F51 #51EC9F
tetradic
#9F51EC #EC5251 #9EEC51 #51EBEC
square
#9F51EC #EC5251 #9EEC51 #51EBEC
split-complementary
#9F51EC #EBEC51 #51EC52
monochromatic
#6213AF #811AE6 #9F51EC #BD88F2 #DCBFF8

Accessibility & contrast

On white

4.32
#9F51EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#9F51EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51EC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51EC#FFFFFF#000000##000000
##9F51EC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#1479E9
Tritanopia (blue-blind)
#907498
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f51ec;
/* rgb */ color: rgb(159, 81, 236);
/* oklch */ color: oklch(60.4% 0.224 303.4);
Tailwind
colors: {
  custom: {
    50: '#c187f3',
    500: '#9f51ec',
    950: '#000000',
  },
}
SCSS
$custom: #9f51ec;
$custom-light: #c187f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51ec",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 270.194,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60436,
    "c": 0.22417,
    "h": 303.4
  },
  "luminance": 0.19312
}

Semantic roles & 50–950 ramp

primary
#9F51EC
secondary
#CCE9B0
accent
#DD0972
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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