#987BEF#987BEF

#987BEF is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.2% C 0.168 H 292.7°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#987BEF
RGBrgb(152, 123, 239)
HSLhsl(255, 78%, 71%)
HSVhsv(255, 49%, 94%)
CMYKcmyk(36.4%, 48.5%, 0%, 6.3%)
CIE-LABlab(59.04, 36.99, -54.77)
CIE-LCHlch(59.04, 66.09, 304.03°)
OKLaboklab(66.2% 0.0649 -0.1548)
OKLCHoklch(66.2% 0.168 292.7)
XYZxyz(35.6077, 27.0725, 84.9941)
Luminance0.2707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BEF #D2EF7B
analogous
#7B98EF #987BEF #D27BEF
triadic
#987BEF #EF987B #7BEF98
tetradic
#987BEF #EF7B98 #D2EF7B #7BEFD2
square
#987BEF #EF7B98 #D2EF7B #7BEFD2
split-complementary
#987BEF #EFD27B #98EF7B
monochromatic
#491AD6 #6D44E8 #987BEF #C3B2F6 #EAE4FC

Accessibility & contrast

On white

3.27
#987BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#987BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BEF
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BEF#FFFFFF#000000##000000
##987BEF1.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5090F3
Deuteranopia (green-blind)
#548CEC
Tritanopia (blue-blind)
#8292AA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987bef;
/* rgb */ color: rgb(152, 123, 239);
/* oklch */ color: oklch(66.2% 0.168 292.7);
Tailwind
colors: {
  custom: {
    50: '#baa1f5',
    500: '#987bef',
    950: '#000000',
  },
}
SCSS
$custom: #987bef;
$custom-light: #baa1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987bef",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 255,
    "s": 78.378,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66195,
    "c": 0.16782,
    "h": 292.7
  },
  "luminance": 0.27073
}

Semantic roles & 50–950 ramp

primary
#987BEF
secondary
#EBF2D3
accent
#DB0BA7
background
#FBFAFF
surface
#F7F3FE
border
#D0CDD6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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