#987BE3#987BE3

#987BE3 is a light, vivid violet. Relative luminance 0.264; OKLCH L 65.5% C 0.152 H 294.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#987BE3
RGBrgb(152, 123, 227)
HSLhsl(257, 65%, 69%)
HSVhsv(257, 46%, 89%)
CMYKcmyk(33%, 45.8%, 0%, 11%)
CIE-LABlab(58.40, 33.87, -49.10)
CIE-LCHlch(58.40, 59.65, 304.59°)
OKLaboklab(65.51% 0.0635 -0.1382)
OKLCHoklch(65.51% 0.152 294.7)
XYZxyz(33.8935, 26.3868, 75.9656)
Luminance0.2639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BE3 #C6E37B
analogous
#7B92E3 #987BE3 #CC7BE3
triadic
#987BE3 #E3987B #7BE398
tetradic
#987BE3 #E37B92 #C6E37B #7BE3CC
square
#987BE3 #E37B92 #C6E37B #7BE3CC
split-complementary
#987BE3 #E3CC7B #92E37B
monochromatic
#5128BC #7149D8 #987BE3 #BFADEE #E7E0F8

Accessibility & contrast

On white

3.35
#987BE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#987BE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BE3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BE3#FFFFFF#000000##000000
##987BE31.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#598DE7
Deuteranopia (green-blind)
#5D8BE0
Tritanopia (blue-blind)
#878FA4
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987be3;
/* rgb */ color: rgb(152, 123, 227);
/* oklch */ color: oklch(65.5% 0.152 294.7);
Tailwind
colors: {
  custom: {
    50: '#b9a1ec',
    500: '#987be3',
    950: '#000000',
  },
}
SCSS
$custom: #987be3;
$custom-light: #b9a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#987be3",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 227
  },
  "hsl": {
    "h": 256.731,
    "s": 65,
    "l": 68.627
  },
  "oklch": {
    "l": 0.65509,
    "c": 0.15211,
    "h": 294.7
  },
  "luminance": 0.26387
}

Semantic roles & 50–950 ramp

primary
#987BE3
secondary
#E4ECCD
accent
#CD199B
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120F16
muted
#817E84

Preview Lab

Preview with #987BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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