#9F87F8#9F87F8

#9F87F8 is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.4% C 0.162 H 291.4°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#9F87F8
RGBrgb(159, 135, 248)
HSLhsl(253, 89%, 75%)
HSVhsv(253, 46%, 97%)
CMYKcmyk(35.9%, 45.6%, 0%, 2.7%)
CIE-LABlab(62.91, 34.27, -53.55)
CIE-LCHlch(62.91, 63.58, 302.62°)
OKLaboklab(69.4% 0.0591 -0.151)
OKLCHoklch(69.4% 0.162 291.4)
XYZxyz(39.9008, 31.4752, 92.7618)
Luminance0.3148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F87F8 #E0F887
analogous
#87A8F8 #9F87F8 #D787F8
triadic
#9F87F8 #F89F87 #87F89F
tetradic
#9F87F8 #F887A8 #E0F887 #87F8D7
square
#9F87F8 #F887A8 #E0F887 #87F8D7
split-complementary
#9F87F8 #F8D787 #A8F887
monochromatic
#4213F1 #714DF5 #9F87F8 #CDC1FB #E8E2FD

Accessibility & contrast

On white

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

On black

7.30
#9F87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F87F8
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F87F8#FFFFFF#000000##000000
##9F87F81.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9AFC
Deuteranopia (green-blind)
#6296F5
Tritanopia (blue-blind)
#899DB4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9f87f8;
/* rgb */ color: rgb(159, 135, 248);
/* oklch */ color: oklch(69.4% 0.162 291.4);
Tailwind
colors: {
  custom: {
    50: '#bfaafb',
    500: '#9f87f8',
    950: '#000000',
  },
}
SCSS
$custom: #9f87f8;
$custom-light: #bfaafb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f87f8",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 252.743,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.694,
    "c": 0.16215,
    "h": 291.4
  },
  "luminance": 0.31476
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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