#B28EFE#B28EFE

#B28EFE is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.6% C 0.161 H 297.0°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#B28EFE
RGBrgb(178, 142, 254)
HSLhsl(259, 98%, 78%)
HSVhsv(259, 44%, 100%)
CMYKcmyk(29.9%, 44.1%, 0%, 0.4%)
CIE-LABlab(66.49, 36.75, -51.05)
CIE-LCHlch(66.49, 62.90, 305.75°)
OKLaboklab(72.6% 0.0731 -0.1432)
OKLCHoklch(72.6% 0.161 297)
XYZxyz(45.9182, 35.9662, 98.2697)
Luminance0.3597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EFE #DAFE8E
analogous
#8EA2FE #B28EFE #EA8EFE
triadic
#B28EFE #FEB28E #8EFEB2
tetradic
#B28EFE #FE8EA2 #DAFE8E #8EFEEA
square
#B28EFE #FE8EA2 #DAFE8E #8EFEEA
split-complementary
#B28EFE #FEEA8E #A2FE8E
monochromatic
#5F15FD #8951FD #B28EFE #DBCBFF #EAE1FF

Accessibility & contrast

On white

2.56
#B28EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#B28EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EFE
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EFE#FFFFFF#000000##000000
##B28EFE1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA2FF
Deuteranopia (green-blind)
#73A0FB
Tritanopia (blue-blind)
#A2A2BA
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b28efe;
/* rgb */ color: rgb(178, 142, 254);
/* oklch */ color: oklch(72.6% 0.161 297.0);
Tailwind
colors: {
  custom: {
    50: '#ccafff',
    500: '#b28efe',
    950: '#000000',
  },
}
SCSS
$custom: #b28efe;
$custom-light: #ccafff;
$custom-dark: #000000;
JSON
{
  "hex": "#b28efe",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 259.286,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.72599,
    "c": 0.16083,
    "h": 297
  },
  "luminance": 0.35967
}

Semantic roles & 50–950 ramp

primary
#B28EFE
secondary
#ECF7D4
accent
#E6009C
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B28EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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