#B987DF#B987DF

#B987DF is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.5% C 0.135 H 309.4°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#B987DF
RGBrgb(185, 135, 223)
HSLhsl(274, 58%, 70%)
HSVhsv(274, 39%, 87%)
CMYKcmyk(17%, 39.5%, 0%, 12.5%)
CIE-LABlab(64.14, 35.38, -37.63)
CIE-LCHlch(64.14, 51.66, 313.24°)
OKLaboklab(70.51% 0.0857 -0.1042)
OKLCHoklch(70.51% 0.135 309.4)
XYZxyz(41.9884, 32.9705, 73.9497)
Luminance0.3297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987DF #ADDF87
analogous
#8D87DF #B987DF #DF87D9
triadic
#B987DF #DFB987 #87DFB9
tetradic
#B987DF #DF8D87 #ADDF87 #87D9DF
square
#B987DF #DF8D87 #ADDF87 #87D9DF
split-complementary
#B987DF #D9DF87 #87DF8D
monochromatic
#7F32BA #9D57D2 #B987DF #D5B7EC #F1E7F9

Accessibility & contrast

On white

2.77
#B987DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#B987DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987DF
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987DF#FFFFFF#000000##000000
##B987DF1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7599E2
Deuteranopia (green-blind)
#819CDD
Tritanopia (blue-blind)
#B494A8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b987df;
/* rgb */ color: rgb(185, 135, 223);
/* oklch */ color: oklch(70.5% 0.135 309.4);
Tailwind
colors: {
  custom: {
    50: '#cfaae9',
    500: '#b987df',
    950: '#000000',
  },
}
SCSS
$custom: #b987df;
$custom-light: #cfaae9;
$custom-dark: #000000;
JSON
{
  "hex": "#b987df",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 274.091,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.70508,
    "c": 0.13491,
    "h": 309.4
  },
  "luminance": 0.3297
}

Semantic roles & 50–950 ramp

primary
#B987DF
secondary
#DFEDD5
accent
#C52067
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #B987DF

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

Preview Lab → · Contrast checker → · Palette generator →

#B987DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva