#B287EA#B287EA

#B287EA is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.4% C 0.146 H 302.9°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#B287EA
RGBrgb(178, 135, 234)
HSLhsl(266, 70%, 72%)
HSVhsv(266, 42%, 92%)
CMYKcmyk(23.9%, 42.3%, 0%, 8.2%)
CIE-LABlab(63.94, 35.86, -44.08)
CIE-LCHlch(63.94, 56.83, 309.13°)
OKLaboklab(70.37% 0.0794 -0.123)
OKLCHoklch(70.37% 0.146 302.9)
XYZxyz(41.8721, 32.7335, 81.9382)
Luminance0.3273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B287EA #BFEA87
analogous
#878DEA #B287EA #E487EA
triadic
#B287EA #EAB287 #87EAB2
tetradic
#B287EA #EA878D #BFEA87 #87EAE4
square
#B287EA #EA878D #BFEA87 #87EAE4
split-complementary
#B287EA #EAE487 #8DEA87
monochromatic
#7025D2 #9153E1 #B287EA #D3BBF3 #EEE5FA

Accessibility & contrast

On white

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

On black

7.55
#B287EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B287EA
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B287EA#FFFFFF#000000##000000
##B287EA1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9AEE
Deuteranopia (green-blind)
#779BE7
Tritanopia (blue-blind)
#A898AD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #b287ea;
/* rgb */ color: rgb(178, 135, 234);
/* oklch */ color: oklch(70.4% 0.146 302.9);
Tailwind
colors: {
  custom: {
    50: '#cbaaf1',
    500: '#b287ea',
    950: '#000000',
  },
}
SCSS
$custom: #b287ea;
$custom-light: #cbaaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b287ea",
  "rgb": {
    "r": 178,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 266.061,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70366,
    "c": 0.1464,
    "h": 302.9
  },
  "luminance": 0.32733
}

Semantic roles & 50–950 ramp

primary
#B287EA
secondary
#E7F2D9
accent
#D2137F
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B287EA

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

Preview Lab → · Contrast checker → · Palette generator →

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