#B787DF#B787DF

#B787DF is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.3% C 0.134 H 308.4°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#B787DF
RGBrgb(183, 135, 223)
HSLhsl(273, 58%, 70%)
HSVhsv(273, 39%, 87%)
CMYKcmyk(17.9%, 39.5%, 0%, 12.5%)
CIE-LABlab(63.94, 34.80, -37.96)
CIE-LCHlch(63.94, 51.50, 312.51°)
OKLaboklab(70.31% 0.0833 -0.1052)
OKLCHoklch(70.31% 0.134 308.4)
XYZxyz(41.5092, 32.7234, 73.9272)
Luminance0.3272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B787DF #AFDF87
analogous
#8B87DF #B787DF #DF87DB
triadic
#B787DF #DFB787 #87DFB7
tetradic
#B787DF #DF8B87 #AFDF87 #87DBDF
square
#B787DF #DF8B87 #AFDF87 #87DBDF
split-complementary
#B787DF #DBDF87 #87DF8B
monochromatic
#7C32BA #9A57D2 #B787DF #D4B7EC #F1E7F9

Accessibility & contrast

On white

2.78
#B787DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#B787DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B787DF
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B787DF#FFFFFF#000000##000000
##B787DF1.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7499E2
Deuteranopia (green-blind)
#809CDD
Tritanopia (blue-blind)
#B294A8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b787df;
/* rgb */ color: rgb(183, 135, 223);
/* oklch */ color: oklch(70.3% 0.134 308.4);
Tailwind
colors: {
  custom: {
    50: '#ceaae9',
    500: '#b787df',
    950: '#000000',
  },
}
SCSS
$custom: #b787df;
$custom-light: #ceaae9;
$custom-dark: #000000;
JSON
{
  "hex": "#b787df",
  "rgb": {
    "r": 183,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 272.727,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.7031,
    "c": 0.1342,
    "h": 308.4
  },
  "luminance": 0.32723
}

Semantic roles & 50–950 ramp

primary
#B787DF
secondary
#E0EDD5
accent
#C5206B
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #B787DF

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

Preview Lab → · Contrast checker → · Palette generator →

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