#B28DFA#B28DFA

#B28DFA is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.2% C 0.157 H 298.0°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B28DFA
RGBrgb(178, 141, 250)
HSLhsl(260, 92%, 77%)
HSVhsv(260, 44%, 98%)
CMYKcmyk(28.8%, 43.6%, 0%, 2%)
CIE-LABlab(66.07, 36.33, -49.53)
CIE-LCHlch(66.07, 61.43, 306.26°)
OKLaboklab(72.22% 0.0739 -0.1388)
OKLCHoklch(72.22% 0.157 298)
XYZxyz(45.1362, 35.4164, 94.8820)
Luminance0.3542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28DFA #D5FA8D
analogous
#8D9FFA #B28DFA #E98DFA
triadic
#B28DFA #FAB28D #8DFAB2
tetradic
#B28DFA #FA8D9F #D5FA8D #8DFAE9
square
#B28DFA #FA8D9F #D5FA8D #8DFAE9
split-complementary
#B28DFA #FAE98D #9FFA8D
monochromatic
#6318F5 #8A52F7 #B28DFA #DAC8FD #EBE2FE

Accessibility & contrast

On white

2.60
#B28DFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#B28DFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28DFA
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28DFA#FFFFFF#000000##000000
##B28DFA1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA1FE
Deuteranopia (green-blind)
#74A0F7
Tritanopia (blue-blind)
#A3A1B8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b28dfa;
/* rgb */ color: rgb(178, 141, 250);
/* oklch */ color: oklch(72.2% 0.157 298.0);
Tailwind
colors: {
  custom: {
    50: '#cbaffc',
    500: '#b28dfa',
    950: '#000000',
  },
}
SCSS
$custom: #b28dfa;
$custom-light: #cbaffc;
$custom-dark: #000000;
JSON
{
  "hex": "#b28dfa",
  "rgb": {
    "r": 178,
    "g": 141,
    "b": 250
  },
  "hsl": {
    "h": 260.367,
    "s": 91.597,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72217,
    "c": 0.15725,
    "h": 298
  },
  "luminance": 0.35417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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