#B28CF8#B28CF8

#B28CF8 is a light, vivid violet. Relative luminance 0.350; OKLCH L 71.9% C 0.156 H 298.6°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#B28CF8
RGBrgb(178, 140, 248)
HSLhsl(261, 89%, 76%)
HSVhsv(261, 44%, 97%)
CMYKcmyk(28.2%, 43.5%, 0%, 2.7%)
CIE-LABlab(65.75, 36.41, -48.95)
CIE-LCHlch(65.75, 61.00, 306.64°)
OKLaboklab(71.94% 0.0749 -0.1371)
OKLCHoklch(71.94% 0.156 298.6)
XYZxyz(44.6775, 34.9981, 93.1903)
Luminance0.3500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CF8 #D2F88C
analogous
#8C9CF8 #B28CF8 #E88CF8
triadic
#B28CF8 #F8B28C #8CF8B2
tetradic
#B28CF8 #F88C9C #D2F88C #8CF8E8
square
#B28CF8 #F88C9C #D2F88C #8CF8E8
split-complementary
#B28CF8 #F8E88C #9CF88C
monochromatic
#6519F1 #8B52F4 #B28CF8 #D9C6FC #ECE2FD

Accessibility & contrast

On white

2.63
#B28CF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#B28CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CF8
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CF8#FFFFFF#000000##000000
##B28CF81.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FC
Deuteranopia (green-blind)
#749FF5
Tritanopia (blue-blind)
#A49FB6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28cf8;
/* rgb */ color: rgb(178, 140, 248);
/* oklch */ color: oklch(71.9% 0.156 298.6);
Tailwind
colors: {
  custom: {
    50: '#cbaefb',
    500: '#b28cf8',
    950: '#000000',
  },
}
SCSS
$custom: #b28cf8;
$custom-light: #cbaefb;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cf8",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 248
  },
  "hsl": {
    "h": 261.111,
    "s": 88.525,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71942,
    "c": 0.15624,
    "h": 298.6
  },
  "luminance": 0.34998
}

Semantic roles & 50–950 ramp

primary
#B28CF8
secondary
#EAF5D6
accent
#E50095
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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