#987FE2#987FE2

#987FE2 is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.2% C 0.145 H 293.7°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#987FE2
RGBrgb(152, 127, 226)
HSLhsl(255, 63%, 69%)
HSVhsv(255, 44%, 89%)
CMYKcmyk(32.7%, 43.8%, 0%, 11.4%)
CIE-LABlab(59.29, 31.31, -47.14)
CIE-LCHlch(59.29, 56.59, 303.60°)
OKLaboklab(66.16% 0.0581 -0.1325)
OKLCHoklch(66.16% 0.145 293.7)
XYZxyz(34.2622, 27.3445, 75.4096)
Luminance0.2735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FE2 #C9E27F
analogous
#7F98E2 #987FE2 #CA7FE2
triadic
#987FE2 #E2987F #7FE298
tetradic
#987FE2 #E27F98 #C9E27F #7FE2CA
square
#987FE2 #E27F98 #C9E27F #7FE2CA
split-complementary
#987FE2 #E2CA7F #98E27F
monochromatic
#4F2BBC #704DD7 #987FE2 #C0B1ED #E8E3F9

Accessibility & contrast

On white

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

On black

6.47
#987FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FE2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FE2#FFFFFF#000000##000000
##987FE21.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F90E6
Deuteranopia (green-blind)
#638DE0
Tritanopia (blue-blind)
#8791A6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987fe2;
/* rgb */ color: rgb(152, 127, 226);
/* oklch */ color: oklch(66.2% 0.145 293.7);
Tailwind
colors: {
  custom: {
    50: '#b9a4eb',
    500: '#987fe2',
    950: '#000000',
  },
}
SCSS
$custom: #987fe2;
$custom-light: #b9a4eb;
$custom-dark: #000000;
JSON
{
  "hex": "#987fe2",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 226
  },
  "hsl": {
    "h": 255.152,
    "s": 63.057,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66162,
    "c": 0.14466,
    "h": 293.7
  },
  "luminance": 0.27345
}

Semantic roles & 50–950 ramp

primary
#987FE2
secondary
#E6EDD0
accent
#CB1B9E
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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