#987BF1#987BF1

#987BF1 is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.3% C 0.170 H 292.4°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#987BF1
RGBrgb(152, 123, 241)
HSLhsl(255, 81%, 71%)
HSVhsv(255, 49%, 95%)
CMYKcmyk(36.9%, 49%, 0%, 5.5%)
CIE-LABlab(59.15, 37.52, -55.70)
CIE-LCHlch(59.15, 67.16, 303.96°)
OKLaboklab(66.31% 0.0651 -0.1575)
OKLCHoklch(66.31% 0.17 292.4)
XYZxyz(35.9048, 27.1913, 86.5588)
Luminance0.2719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BF1 #D4F17B
analogous
#7B99F1 #987BF1 #D37BF1
triadic
#987BF1 #F1987B #7BF198
tetradic
#987BF1 #F17B99 #D4F17B #7BF1D3
square
#987BF1 #F17B99 #D4F17B #7BF1D3
split-complementary
#987BF1 #F1D37B #99F17B
monochromatic
#4717DA #6D44EB #987BF1 #C3B2F7 #E9E3FC

Accessibility & contrast

On white

3.26
#987BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#987BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BF1
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BF1#FFFFFF#000000##000000
##987BF11.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E90F5
Deuteranopia (green-blind)
#528CEE
Tritanopia (blue-blind)
#8292AB
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987bf1;
/* rgb */ color: rgb(152, 123, 241);
/* oklch */ color: oklch(66.3% 0.170 292.4);
Tailwind
colors: {
  custom: {
    50: '#baa1f6',
    500: '#987bf1',
    950: '#000000',
  },
}
SCSS
$custom: #987bf1;
$custom-light: #baa1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#987bf1",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 241
  },
  "hsl": {
    "h": 254.746,
    "s": 80.822,
    "l": 71.373
  },
  "oklch": {
    "l": 0.66313,
    "c": 0.17042,
    "h": 292.4
  },
  "luminance": 0.27192
}

Semantic roles & 50–950 ramp

primary
#987BF1
secondary
#ECF3D5
accent
#DD08A9
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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