#B28CFA#B28CFA

#B28CFA is a light, vivid violet. Relative luminance 0.351; OKLCH L 72.0% C 0.159 H 298.3°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#B28CFA
RGBrgb(178, 140, 250)
HSLhsl(261, 92%, 76%)
HSVhsv(261, 44%, 98%)
CMYKcmyk(28.8%, 44%, 0%, 2%)
CIE-LABlab(65.84, 36.89, -49.89)
CIE-LCHlch(65.84, 62.05, 306.48°)
OKLaboklab(72.05% 0.0752 -0.1399)
OKLCHoklch(72.05% 0.159 298.3)
XYZxyz(44.9894, 35.1229, 94.8331)
Luminance0.3512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CFA #D4FA8C
analogous
#8C9DFA #B28CFA #E98CFA
triadic
#B28CFA #FAB28C #8CFAB2
tetradic
#B28CFA #FA8C9D #D4FA8C #8CFAE9
square
#B28CFA #FA8C9D #D4FA8C #8CFAE9
split-complementary
#B28CFA #FAE98C #9DFA8C
monochromatic
#6317F5 #8B51F7 #B28CFA #D9C7FD #EBE2FE

Accessibility & contrast

On white

2.62
#B28CFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#B28CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CFA
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CFA#FFFFFF#000000##000000
##B28CFA1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA0FE
Deuteranopia (green-blind)
#739FF7
Tritanopia (blue-blind)
#A3A0B7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28cfa;
/* rgb */ color: rgb(178, 140, 250);
/* oklch */ color: oklch(72.0% 0.159 298.3);
Tailwind
colors: {
  custom: {
    50: '#cbaefc',
    500: '#b28cfa',
    950: '#000000',
  },
}
SCSS
$custom: #b28cfa;
$custom-light: #cbaefc;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cfa",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 260.727,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72046,
    "c": 0.1588,
    "h": 298.3
  },
  "luminance": 0.35123
}

Semantic roles & 50–950 ramp

primary
#B28CFA
secondary
#EBF6D5
accent
#E60096
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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