#987BEC#987BEC

#987BEC is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.0% C 0.164 H 293.2°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#987BEC
RGBrgb(152, 123, 236)
HSLhsl(255, 75%, 70%)
HSVhsv(255, 48%, 93%)
CMYKcmyk(35.6%, 47.9%, 0%, 7.5%)
CIE-LABlab(58.88, 36.20, -53.36)
CIE-LCHlch(58.88, 64.48, 304.15°)
OKLaboklab(66.02% 0.0646 -0.1507)
OKLCHoklch(66.02% 0.164 293.2)
XYZxyz(35.1682, 26.8967, 82.6793)
Luminance0.2690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BEC #CFEC7B
analogous
#7B97EC #987BEC #D07BEC
triadic
#987BEC #EC987B #7BEC98
tetradic
#987BEC #EC7B97 #CFEC7B #7BECD0
square
#987BEC #EC7B97 #CFEC7B #7BECD0
split-complementary
#987BEC #ECD07B #97EC7B
monochromatic
#4B1ECF #6E46E4 #987BEC #C2B0F4 #EAE4FB

Accessibility & contrast

On white

3.29
#987BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#987BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BEC
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BEC#FFFFFF#000000##000000
##987BEC1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FF0
Deuteranopia (green-blind)
#578CE9
Tritanopia (blue-blind)
#8491A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987bec;
/* rgb */ color: rgb(152, 123, 236);
/* oklch */ color: oklch(66.0% 0.164 293.2);
Tailwind
colors: {
  custom: {
    50: '#baa1f3',
    500: '#987bec',
    950: '#000000',
  },
}
SCSS
$custom: #987bec;
$custom-light: #baa1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987bec",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 255.398,
    "s": 74.834,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66021,
    "c": 0.16392,
    "h": 293.2
  },
  "luminance": 0.26897
}

Semantic roles & 50–950 ramp

primary
#987BEC
secondary
#E9F1D2
accent
#D70FA4
background
#FBFAFE
surface
#F7F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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