#9F87F5#9F87F5

#9F87F5 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.2% C 0.158 H 291.8°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#9F87F5
RGBrgb(159, 135, 245)
HSLhsl(253, 85%, 75%)
HSVhsv(253, 45%, 96%)
CMYKcmyk(35.1%, 44.9%, 0%, 3.9%)
CIE-LABlab(62.75, 33.49, -52.15)
CIE-LCHlch(62.75, 61.97, 302.71°)
OKLaboklab(69.23% 0.0587 -0.1469)
OKLCHoklch(69.23% 0.158 291.8)
XYZxyz(39.4391, 31.2905, 90.3303)
Luminance0.3129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F87F5 #DDF587
analogous
#87A6F5 #9F87F5 #D687F5
triadic
#9F87F5 #F59F87 #87F59F
tetradic
#9F87F5 #F587A6 #DDF587 #87F5D6
square
#9F87F5 #F587A6 #DDF587 #87F5D6
split-complementary
#9F87F5 #F5D687 #A6F587
monochromatic
#4516EC #724FF0 #9F87F5 #CCBFFA #E8E3FD

Accessibility & contrast

On white

2.89
#9F87F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#9F87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F87F5
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F87F5#FFFFFF#000000##000000
##9F87F51.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6199F9
Deuteranopia (green-blind)
#6496F2
Tritanopia (blue-blind)
#8A9CB2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9f87f5;
/* rgb */ color: rgb(159, 135, 245);
/* oklch */ color: oklch(69.2% 0.158 291.8);
Tailwind
colors: {
  custom: {
    50: '#bfaaf9',
    500: '#9f87f5',
    950: '#000000',
  },
}
SCSS
$custom: #9f87f5;
$custom-light: #bfaaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f87f5",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 253.091,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69233,
    "c": 0.15819,
    "h": 291.8
  },
  "luminance": 0.31291
}

Semantic roles & 50–950 ramp

primary
#9F87F5
secondary
#EEF5D6
accent
#E104B1
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9F87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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