#987BFA#987BFA

#987BFA is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.9% C 0.182 H 291.2°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#987BFA
RGBrgb(152, 123, 250)
HSLhsl(254, 93%, 73%)
HSVhsv(254, 51%, 98%)
CMYKcmyk(39.2%, 50.8%, 0%, 2%)
CIE-LABlab(59.66, 39.91, -59.87)
CIE-LCHlch(59.66, 71.95, 303.69°)
OKLaboklab(66.85% 0.0658 -0.1697)
OKLCHoklch(66.85% 0.182 291.2)
XYZxyz(37.2825, 27.7424, 93.8144)
Luminance0.2774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BFA #DDFA7B
analogous
#7B9DFA #987BFA #D87BFA
triadic
#987BFA #FA987B #7BFA98
tetradic
#987BFA #FA7B9D #DDFA7B #7BFAD8
square
#987BFA #FA7B9D #DDFA7B #7BFAD8
split-complementary
#987BFA #FAD87B #9DFA7B
monochromatic
#3E09F1 #6A40F8 #987BFA #C6B6FC #E8E2FE

Accessibility & contrast

On white

3.21
#987BFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#987BFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BFA
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BFA#FFFFFF#000000##000000
##987BFA1.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4692FE
Deuteranopia (green-blind)
#4A8DF7
Tritanopia (blue-blind)
#7E95AF
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987bfa;
/* rgb */ color: rgb(152, 123, 250);
/* oklch */ color: oklch(66.9% 0.182 291.2);
Tailwind
colors: {
  custom: {
    50: '#bba2fd',
    500: '#987bfa',
    950: '#000000',
  },
}
SCSS
$custom: #987bfa;
$custom-light: #bba2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987bfa",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 250
  },
  "hsl": {
    "h": 253.701,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.66852,
    "c": 0.18203,
    "h": 291.2
  },
  "luminance": 0.27743
}

Semantic roles & 50–950 ramp

primary
#987BFA
secondary
#EEF6D5
accent
#E600B1
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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