#B287FC#B287FC

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

Color values

HEX#B287FC
RGBrgb(178, 135, 252)
HSLhsl(262, 95%, 76%)
HSVhsv(262, 46%, 99%)
CMYKcmyk(29.4%, 46.4%, 0%, 1.2%)
CIE-LABlab(64.82, 40.15, -52.60)
CIE-LCHlch(64.82, 66.17, 307.35°)
OKLaboklab(71.31% 0.082 -0.1478)
OKLCHoklch(71.31% 0.169 299)
XYZxyz(44.5906, 33.8209, 96.2554)
Luminance0.3382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B287FC #D1FC87
analogous
#8796FC #B287FC #EC87FC
triadic
#B287FC #FCB287 #87FCB2
tetradic
#B287FC #FC8796 #D1FC87 #87FCEC
square
#B287FC #FC8796 #D1FC87 #87FCEC
split-complementary
#B287FC #FCEC87 #96FC87
monochromatic
#6510F9 #8C4BFB #B287FC #D8C3FD #ECE1FE

Accessibility & contrast

On white

2.70
#B287FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#B287FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B287FC
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B287FC#FFFFFF#000000##000000
##B287FC1.002.707.767.76
#FFFFFF2.701.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#629DFF
Deuteranopia (green-blind)
#6C9CF9
Tritanopia (blue-blind)
#A39CB6
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b287fc;
/* rgb */ color: rgb(178, 135, 252);
/* oklch */ color: oklch(71.3% 0.169 299.0);
Tailwind
colors: {
  custom: {
    50: '#ccabfe',
    500: '#b287fc',
    950: '#000000',
  },
}
SCSS
$custom: #b287fc;
$custom-light: #ccabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b287fc",
  "rgb": {
    "r": 178,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 262.051,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7131,
    "c": 0.16901,
    "h": 299
  },
  "luminance": 0.33821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B287FC

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

Preview Lab → · Contrast checker → · Palette generator →

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