#987BF3#987BF3

#987BF3 is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.4% C 0.173 H 292.2°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#987BF3
RGBrgb(152, 123, 243)
HSLhsl(255, 83%, 72%)
HSVhsv(255, 49%, 95%)
CMYKcmyk(37.4%, 49.4%, 0%, 4.7%)
CIE-LABlab(59.26, 38.05, -56.63)
CIE-LCHlch(59.26, 68.23, 303.89°)
OKLaboklab(66.43% 0.0653 -0.1602)
OKLCHoklch(66.43% 0.173 292.2)
XYZxyz(36.2052, 27.3115, 88.1407)
Luminance0.2731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BF3 #D6F37B
analogous
#7B9AF3 #987BF3 #D47BF3
triadic
#987BF3 #F3987B #7BF398
tetradic
#987BF3 #F37B9A #D6F37B #7BF3D4
square
#987BF3 #F37B9A #D6F37B #7BF3D4
split-complementary
#987BF3 #F3D47B #9AF37B
monochromatic
#4514DF #6C43EE #987BF3 #C4B3F8 #E9E3FC

Accessibility & contrast

On white

3.25
#987BF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#987BF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BF3
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BF3#FFFFFF#000000##000000
##987BF31.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C90F7
Deuteranopia (green-blind)
#518CF0
Tritanopia (blue-blind)
#8193AC
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987bf3;
/* rgb */ color: rgb(152, 123, 243);
/* oklch */ color: oklch(66.4% 0.173 292.2);
Tailwind
colors: {
  custom: {
    50: '#baa1f8',
    500: '#987bf3',
    950: '#000000',
  },
}
SCSS
$custom: #987bf3;
$custom-light: #baa1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987bf3",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 243
  },
  "hsl": {
    "h": 254.5,
    "s": 83.333,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66431,
    "c": 0.17302,
    "h": 292.2
  },
  "luminance": 0.27312
}

Semantic roles & 50–950 ramp

primary
#987BF3
secondary
#EDF4D6
accent
#E006AB
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BF3

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

Preview Lab → · Contrast checker → · Palette generator →

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