#B87AFE#B87AFE

#B87AFE is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.9% C 0.192 H 303.5°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#B87AFE
RGBrgb(184, 122, 254)
HSLhsl(268, 99%, 74%)
HSVhsv(268, 52%, 100%)
CMYKcmyk(27.6%, 52%, 0%, 0.4%)
CIE-LABlab(62.73, 49.22, -56.98)
CIE-LCHlch(62.73, 75.30, 310.82°)
OKLaboklab(69.93% 0.1062 -0.1604)
OKLCHoklch(69.93% 0.192 303.5)
XYZxyz(44.6121, 31.2653, 97.4312)
Luminance0.3126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B87AFE #C0FE7A
analogous
#7A7EFE #B87AFE #FA7AFE
triadic
#B87AFE #FEB87A #7AFEB8
tetradic
#B87AFE #FE7A7E #C0FE7A #7AFEFA
square
#B87AFE #FE7A7E #C0FE7A #7AFEFA
split-complementary
#B87AFE #FEFA7A #7EFE7A
monochromatic
#7702FC #983DFE #B87AFE #D8B7FE #EFE1FF

Accessibility & contrast

On white

2.90
#B87AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#B87AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B87AFE
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B87AFE#FFFFFF#000000##000000
##B87AFE1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D96FF
Deuteranopia (green-blind)
#6098FB
Tritanopia (blue-blind)
#AB93B1
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b87afe;
/* rgb */ color: rgb(184, 122, 254);
/* oklch */ color: oklch(69.9% 0.192 303.5);
Tailwind
colors: {
  custom: {
    50: '#d0a2ff',
    500: '#b87afe',
    950: '#000000',
  },
}
SCSS
$custom: #b87afe;
$custom-light: #d0a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b87afe",
  "rgb": {
    "r": 184,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 268.182,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69925,
    "c": 0.19236,
    "h": 303.5
  },
  "luminance": 0.31265
}

Semantic roles & 50–950 ramp

primary
#B87AFE
secondary
#E7F7D4
accent
#E6007A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B87AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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