#987EFA#987EFA

#987EFA is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.4% C 0.178 H 290.5°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#987EFA
RGBrgb(152, 126, 250)
HSLhsl(253, 93%, 74%)
HSVhsv(253, 50%, 98%)
CMYKcmyk(39.2%, 49.6%, 0%, 2%)
CIE-LABlab(60.34, 38.21, -58.78)
CIE-LCHlch(60.34, 70.11, 303.02°)
OKLaboklab(67.36% 0.0622 -0.1665)
OKLCHoklch(67.36% 0.178 290.5)
XYZxyz(37.6604, 28.4981, 93.9404)
Luminance0.2850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EFA #E0FA7E
analogous
#7EA2FA #987EFA #D67EFA
triadic
#987EFA #FA987E #7EFA98
tetradic
#987EFA #FA7EA2 #E0FA7E #7EFAD6
square
#987EFA #FA7EA2 #E0FA7E #7EFAD6
split-complementary
#987EFA #FAD67E #A2FA7E
monochromatic
#3B09F4 #6943F8 #987EFA #C7B9FC #E7E2FE

Accessibility & contrast

On white

3.13
#987EFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#987EFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EFA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EFA#FFFFFF#000000##000000
##987EFA1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C94FE
Deuteranopia (green-blind)
#4E8FF7
Tritanopia (blue-blind)
#7E97B0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987efa;
/* rgb */ color: rgb(152, 126, 250);
/* oklch */ color: oklch(67.4% 0.178 290.5);
Tailwind
colors: {
  custom: {
    50: '#bba4fc',
    500: '#987efa',
    950: '#000000',
  },
}
SCSS
$custom: #987efa;
$custom-light: #bba4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#987efa",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 252.581,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67361,
    "c": 0.17775,
    "h": 290.5
  },
  "luminance": 0.28499
}

Semantic roles & 50–950 ramp

primary
#987EFA
secondary
#EFF6D5
accent
#E600B5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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