#B28EF6#B28EF6

#B28EF6 is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.2% C 0.151 H 298.5°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#B28EF6
RGBrgb(178, 142, 246)
HSLhsl(261, 85%, 76%)
HSVhsv(261, 42%, 96%)
CMYKcmyk(27.6%, 42.3%, 0%, 3.5%)
CIE-LABlab(66.11, 34.81, -47.28)
CIE-LCHlch(66.11, 58.71, 306.36°)
OKLaboklab(72.18% 0.0719 -0.1323)
OKLCHoklch(72.18% 0.151 298.5)
XYZxyz(44.6638, 35.4644, 91.6632)
Luminance0.3547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EF6 #D2F68E
analogous
#8E9EF6 #B28EF6 #E68EF6
triadic
#B28EF6 #F6B28E #8EF6B2
tetradic
#B28EF6 #F68E9E #D2F68E #8EF6E6
square
#B28EF6 #F68E9E #D2F68E #8EF6E6
split-complementary
#B28EF6 #F6E68E #9EF68E
monochromatic
#651DED #8B55F1 #B28EF6 #D9C7FB #ECE3FD

Accessibility & contrast

On white

2.59
#B28EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#B28EF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EF6
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EF6#FFFFFF#000000##000000
##B28EF61.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A1FA
Deuteranopia (green-blind)
#78A0F3
Tritanopia (blue-blind)
#A4A0B6
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b28ef6;
/* rgb */ color: rgb(178, 142, 246);
/* oklch */ color: oklch(72.2% 0.151 298.5);
Tailwind
colors: {
  custom: {
    50: '#cbaff9',
    500: '#b28ef6',
    950: '#000000',
  },
}
SCSS
$custom: #b28ef6;
$custom-light: #cbaff9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ef6",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 246
  },
  "hsl": {
    "h": 260.769,
    "s": 85.246,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72183,
    "c": 0.15056,
    "h": 298.5
  },
  "luminance": 0.35465
}

Semantic roles & 50–950 ramp

primary
#B28EF6
secondary
#EAF5D6
accent
#E20495
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B28EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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