#9F5EF1#9F5EF1

#9F5EF1 is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.5% C 0.213 H 300.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9F5EF1
RGBrgb(159, 94, 241)
HSLhsl(267, 84%, 66%)
HSVhsv(267, 61%, 95%)
CMYKcmyk(34%, 61%, 0%, 5.5%)
CIE-LABlab(53.74, 54.95, -64.35)
CIE-LCHlch(53.74, 84.62, 310.50°)
OKLaboklab(62.48% 0.1087 -0.1827)
OKLCHoklch(62.48% 0.213 300.7)
XYZxyz(34.1742, 21.7270, 85.5953)
Luminance0.2173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5EF1 #B0F15E
analogous
#5E66F1 #9F5EF1 #E95EF1
triadic
#9F5EF1 #F19F5E #5EF19F
tetradic
#9F5EF1 #F15E66 #B0F15E #5EF1E9
square
#9F5EF1 #F15E66 #B0F15E #5EF1E9
split-complementary
#9F5EF1 #F1E95E #66F15E
monochromatic
#6011C4 #7D26EC #9F5EF1 #C196F6 #E2CFFB

Accessibility & contrast

On white

3.93
#9F5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#9F5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5EF1
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5EF1#FFFFFF#000000##000000
##9F5EF11.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F6
Deuteranopia (green-blind)
#2A80EE
Tritanopia (blue-blind)
#8E7D9F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9f5ef1;
/* rgb */ color: rgb(159, 94, 241);
/* oklch */ color: oklch(62.5% 0.213 300.7);
Tailwind
colors: {
  custom: {
    50: '#c08ff6',
    500: '#9f5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ef1;
$custom-light: #c08ff6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ef1",
  "rgb": {
    "r": 159,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 266.531,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6248,
    "c": 0.21256,
    "h": 300.7
  },
  "luminance": 0.21727
}

Semantic roles & 50–950 ramp

primary
#9F5EF1
secondary
#D8EEBD
accent
#E0057F
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130D17
muted
#827D85

Preview Lab

Preview with #9F5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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