#B287FA#B287FA

#B287FA is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.2% C 0.167 H 299.4°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#B287FA
RGBrgb(178, 135, 250)
HSLhsl(262, 92%, 75%)
HSVhsv(262, 46%, 98%)
CMYKcmyk(28.8%, 46%, 0%, 2%)
CIE-LABlab(64.72, 39.67, -51.67)
CIE-LCHlch(64.72, 65.14, 307.51°)
OKLaboklab(71.2% 0.0818 -0.1451)
OKLCHoklch(71.2% 0.167 299.4)
XYZxyz(44.2753, 33.6947, 94.5951)
Luminance0.3370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B287FA #CFFA87
analogous
#8795FA #B287FA #EC87FA
triadic
#B287FA #FAB287 #87FAB2
tetradic
#B287FA #FA8795 #CFFA87 #87FAEC
square
#B287FA #FA8795 #CFFA87 #87FAEC
split-complementary
#B287FA #FAEC87 #95FA87
monochromatic
#6711F5 #8C4CF8 #B287FA #D8C2FC #ECE2FE

Accessibility & contrast

On white

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

On black

7.74
#B287FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B287FA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B287FA#FFFFFF#000000##000000
##B287FA1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#649DFE
Deuteranopia (green-blind)
#6D9CF7
Tritanopia (blue-blind)
#A49CB5
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b287fa;
/* rgb */ color: rgb(178, 135, 250);
/* oklch */ color: oklch(71.2% 0.167 299.4);
Tailwind
colors: {
  custom: {
    50: '#ccabfc',
    500: '#b287fa',
    950: '#000000',
  },
}
SCSS
$custom: #b287fa;
$custom-light: #ccabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b287fa",
  "rgb": {
    "r": 178,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 262.435,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71202,
    "c": 0.16651,
    "h": 299.4
  },
  "luminance": 0.33695
}

Semantic roles & 50–950 ramp

primary
#B287FA
secondary
#EAF6D5
accent
#E60090
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B287FA

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

Preview Lab → · Contrast checker → · Palette generator →

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