#B287FB#B287FB

#B287FB is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.3% C 0.168 H 299.2°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#B287FB
RGBrgb(178, 135, 251)
HSLhsl(262, 94%, 76%)
HSVhsv(262, 46%, 98%)
CMYKcmyk(29.1%, 46.2%, 0%, 1.6%)
CIE-LABlab(64.77, 39.91, -52.14)
CIE-LCHlch(64.77, 65.66, 307.43°)
OKLaboklab(71.26% 0.0819 -0.1464)
OKLCHoklch(71.26% 0.168 299.2)
XYZxyz(44.4326, 33.7576, 95.4231)
Luminance0.3376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B287FB #D0FB87
analogous
#8796FB #B287FB #EC87FB
triadic
#B287FB #FBB287 #87FBB2
tetradic
#B287FB #FB8796 #D0FB87 #87FBEC
square
#B287FB #FB8796 #D0FB87 #87FBEC
split-complementary
#B287FB #FBEC87 #96FB87
monochromatic
#6611F7 #8C4CF9 #B287FB #D8C2FD #ECE1FE

Accessibility & contrast

On white

2.71
#B287FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#B287FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B287FB
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B287FB#FFFFFF#000000##000000
##B287FB1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#6D9CF8
Tritanopia (blue-blind)
#A39CB5
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b287fb;
/* rgb */ color: rgb(178, 135, 251);
/* oklch */ color: oklch(71.3% 0.168 299.2);
Tailwind
colors: {
  custom: {
    50: '#ccabfd',
    500: '#b287fb',
    950: '#000000',
  },
}
SCSS
$custom: #b287fb;
$custom-light: #ccabfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b287fb",
  "rgb": {
    "r": 178,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 262.241,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71255,
    "c": 0.16776,
    "h": 299.2
  },
  "luminance": 0.33758
}

Semantic roles & 50–950 ramp

primary
#B287FB
secondary
#EAF6D5
accent
#E60090
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B287FB

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

Preview Lab → · Contrast checker → · Palette generator →

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