#9F87F7#9F87F7

#9F87F7 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.3% C 0.161 H 291.5°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#9F87F7
RGBrgb(159, 135, 247)
HSLhsl(253, 88%, 75%)
HSVhsv(253, 45%, 97%)
CMYKcmyk(35.6%, 45.3%, 0%, 3.1%)
CIE-LABlab(62.85, 34.01, -53.08)
CIE-LCHlch(62.85, 63.04, 302.65°)
OKLaboklab(69.34% 0.0589 -0.1496)
OKLCHoklch(69.34% 0.161 291.5)
XYZxyz(39.7461, 31.4133, 91.9469)
Luminance0.3141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F87F7 #DFF787
analogous
#87A7F7 #9F87F7 #D787F7
triadic
#9F87F7 #F79F87 #87F79F
tetradic
#9F87F7 #F787A7 #DFF787 #87F7D7
square
#9F87F7 #F787A7 #DFF787 #87F7D7
split-complementary
#9F87F7 #F7D787 #A7F787
monochromatic
#4314EF #714EF3 #9F87F7 #CDC0FB #E8E2FD

Accessibility & contrast

On white

2.88
#9F87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#9F87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F87F7
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F87F7#FFFFFF#000000##000000
##9F87F71.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFB
Deuteranopia (green-blind)
#6396F4
Tritanopia (blue-blind)
#899DB3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9f87f7;
/* rgb */ color: rgb(159, 135, 247);
/* oklch */ color: oklch(69.3% 0.161 291.5);
Tailwind
colors: {
  custom: {
    50: '#bfaafa',
    500: '#9f87f7',
    950: '#000000',
  },
}
SCSS
$custom: #9f87f7;
$custom-light: #bfaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#9f87f7",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 252.857,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.69344,
    "c": 0.16083,
    "h": 291.5
  },
  "luminance": 0.31414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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