#9F87F9#9F87F9

#9F87F9 is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.5% C 0.163 H 291.2°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#9F87F9
RGBrgb(159, 135, 249)
HSLhsl(253, 90%, 75%)
HSVhsv(253, 46%, 98%)
CMYKcmyk(36.1%, 45.8%, 0%, 2.4%)
CIE-LABlab(62.96, 34.53, -54.02)
CIE-LCHlch(62.96, 64.11, 302.59°)
OKLaboklab(69.46% 0.0592 -0.1524)
OKLCHoklch(69.46% 0.163 291.2)
XYZxyz(40.0564, 31.5374, 93.5810)
Luminance0.3154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F87F9 #E1F987
analogous
#87A8F9 #9F87F9 #D887F9
triadic
#9F87F9 #F99F87 #87F99F
tetradic
#9F87F9 #F987A8 #E1F987 #87F9D8
square
#9F87F9 #F987A8 #E1F987 #87F9D8
split-complementary
#9F87F9 #F9D887 #A8F987
monochromatic
#4212F3 #704DF6 #9F87F9 #CEC1FC #E8E2FE

Accessibility & contrast

On white

2.87
#9F87F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#9F87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F87F9
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F87F9#FFFFFF#000000##000000
##9F87F91.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9AFD
Deuteranopia (green-blind)
#6196F6
Tritanopia (blue-blind)
#889DB4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9f87f9;
/* rgb */ color: rgb(159, 135, 249);
/* oklch */ color: oklch(69.5% 0.163 291.2);
Tailwind
colors: {
  custom: {
    50: '#bfaafc',
    500: '#9f87f9',
    950: '#000000',
  },
}
SCSS
$custom: #9f87f9;
$custom-light: #bfaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f87f9",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 252.632,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.69456,
    "c": 0.16347,
    "h": 291.2
  },
  "luminance": 0.31538
}

Semantic roles & 50–950 ramp

primary
#9F87F9
secondary
#EFF6D5
accent
#E600B5
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9F87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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