#B28EF5#B28EF5

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

Color values

HEX#B28EF5
RGBrgb(178, 142, 245)
HSLhsl(261, 84%, 76%)
HSVhsv(261, 42%, 96%)
CMYKcmyk(27.3%, 42%, 0%, 3.9%)
CIE-LABlab(66.06, 34.57, -46.81)
CIE-LCHlch(66.06, 58.19, 306.45°)
OKLaboklab(72.13% 0.0717 -0.1309)
OKLCHoklch(72.13% 0.149 298.7)
XYZxyz(44.5107, 35.4032, 90.8570)
Luminance0.3540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EF5 #D1F58E
analogous
#8E9DF5 #B28EF5 #E58EF5
triadic
#B28EF5 #F5B28E #8EF5B2
tetradic
#B28EF5 #F58E9D #D1F58E #8EF5E5
square
#B28EF5 #F58E9D #D1F58E #8EF5E5
split-complementary
#B28EF5 #F5E58E #9DF58E
monochromatic
#651EEB #8C56F0 #B28EF5 #D8C6FA #ECE3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B28EF5#FFFFFF#000000##000000
##B28EF51.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)
#71A1F9
Deuteranopia (green-blind)
#78A0F2
Tritanopia (blue-blind)
#A5A0B6
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b28ef5;
/* rgb */ color: rgb(178, 142, 245);
/* oklch */ color: oklch(72.1% 0.149 298.7);
Tailwind
colors: {
  custom: {
    50: '#cbaff9',
    500: '#b28ef5',
    950: '#000000',
  },
}
SCSS
$custom: #b28ef5;
$custom-light: #cbaff9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ef5",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 245
  },
  "hsl": {
    "h": 260.971,
    "s": 83.74,
    "l": 75.882
  },
  "oklch": {
    "l": 0.72132,
    "c": 0.14928,
    "h": 298.7
  },
  "luminance": 0.35404
}

Semantic roles & 50–950 ramp

primary
#B28EF5
secondary
#EAF4D7
accent
#E00594
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B28EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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