#987FFB#987FFB

#987FFB is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.6% C 0.178 H 290.1°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#987FFB
RGBrgb(152, 127, 251)
HSLhsl(252, 94%, 74%)
HSVhsv(252, 49%, 98%)
CMYKcmyk(39.4%, 49.4%, 0%, 1.6%)
CIE-LABlab(60.62, 37.91, -58.88)
CIE-LCHlch(60.62, 70.03, 302.77°)
OKLaboklab(67.59% 0.061 -0.1668)
OKLCHoklch(67.59% 0.178 290.1)
XYZxyz(37.9461, 28.8180, 94.8112)
Luminance0.2882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FFB #E2FB7F
analogous
#7FA4FB #987FFB #D67FFB
triadic
#987FFB #FB987F #7FFB98
tetradic
#987FFB #FB7FA4 #E2FB7F #7FFBD6
square
#987FFB #FB7FA4 #E2FB7F #7FFBD6
split-complementary
#987FFB #FBD67F #A4FB7F
monochromatic
#3808F7 #6844F9 #987FFB #C8BAFD #E7E1FE

Accessibility & contrast

On white

3.10
#987FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#987FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FFB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FFB#FFFFFF#000000##000000
##987FFB1.003.106.766.76
#FFFFFF3.101.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D95FF
Deuteranopia (green-blind)
#4F8FF8
Tritanopia (blue-blind)
#7D98B1
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #987ffb;
/* rgb */ color: rgb(152, 127, 251);
/* oklch */ color: oklch(67.6% 0.178 290.1);
Tailwind
colors: {
  custom: {
    50: '#bba4fd',
    500: '#987ffb',
    950: '#000000',
  },
}
SCSS
$custom: #987ffb;
$custom-light: #bba4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987ffb",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 252.097,
    "s": 93.939,
    "l": 74.118
  },
  "oklch": {
    "l": 0.67591,
    "c": 0.17762,
    "h": 290.1
  },
  "luminance": 0.28819
}

Semantic roles & 50–950 ramp

primary
#987FFB
secondary
#F0F6D5
accent
#E600B7
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987FFB

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

Preview Lab → · Contrast checker → · Palette generator →

#987FFB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva