#987BF2#987BF2

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

Color values

HEX#987BF2
RGBrgb(152, 123, 242)
HSLhsl(255, 82%, 72%)
HSVhsv(255, 49%, 95%)
CMYKcmyk(37.2%, 49.2%, 0%, 5.1%)
CIE-LABlab(59.21, 37.78, -56.17)
CIE-LCHlch(59.21, 67.69, 303.93°)
OKLaboklab(66.37% 0.0652 -0.1589)
OKLCHoklch(66.37% 0.172 292.3)
XYZxyz(36.0546, 27.2512, 87.3476)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BF2 #D5F27B
analogous
#7B9AF2 #987BF2 #D47BF2
triadic
#987BF2 #F2987B #7BF298
tetradic
#987BF2 #F27B9A #D5F27B #7BF2D4
square
#987BF2 #F27B9A #D5F27B #7BF2D4
split-complementary
#987BF2 #F2D47B #9AF27B
monochromatic
#4616DD #6D43ED #987BF2 #C3B3F7 #E9E3FC

Accessibility & contrast

On white

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

On black

6.45
#987BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BF2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BF2#FFFFFF#000000##000000
##987BF21.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D90F6
Deuteranopia (green-blind)
#528CEF
Tritanopia (blue-blind)
#8193AB
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987bf2;
/* rgb */ color: rgb(152, 123, 242);
/* oklch */ color: oklch(66.4% 0.172 292.3);
Tailwind
colors: {
  custom: {
    50: '#baa1f7',
    500: '#987bf2',
    950: '#000000',
  },
}
SCSS
$custom: #987bf2;
$custom-light: #baa1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#987bf2",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 254.622,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66372,
    "c": 0.17172,
    "h": 292.3
  },
  "luminance": 0.27252
}

Semantic roles & 50–950 ramp

primary
#987BF2
secondary
#ECF4D5
accent
#DE07AA
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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