#B28EFD#B28EFD

#B28EFD is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.5% C 0.160 H 297.2°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B28EFD
RGBrgb(178, 142, 253)
HSLhsl(259, 97%, 77%)
HSVhsv(259, 44%, 99%)
CMYKcmyk(29.6%, 43.9%, 0%, 0.8%)
CIE-LABlab(66.45, 36.51, -50.58)
CIE-LCHlch(66.45, 62.38, 305.82°)
OKLaboklab(72.55% 0.073 -0.1419)
OKLCHoklch(72.55% 0.16 297.2)
XYZxyz(45.7584, 35.9023, 97.4285)
Luminance0.3590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EFD #D9FD8E
analogous
#8EA2FD #B28EFD #E98EFD
triadic
#B28EFD #FDB28E #8EFDB2
tetradic
#B28EFD #FD8EA2 #D9FD8E #8EFDE9
square
#B28EFD #FD8EA2 #D9FD8E #8EFDE9
split-complementary
#B28EFD #FDE98E #A2FD8E
monochromatic
#6016FB #8952FC #B28EFD #DBCAFE #EBE1FE

Accessibility & contrast

On white

2.57
#B28EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B28EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EFD
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EFD#FFFFFF#000000##000000
##B28EFD1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b28efd;
/* rgb */ color: rgb(178, 142, 253);
/* oklch */ color: oklch(72.5% 0.160 297.2);
Tailwind
colors: {
  custom: {
    50: '#cbaffe',
    500: '#b28efd',
    950: '#000000',
  },
}
SCSS
$custom: #b28efd;
$custom-light: #cbaffe;
$custom-dark: #000000;
JSON
{
  "hex": "#b28efd",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 253
  },
  "hsl": {
    "h": 259.459,
    "s": 96.522,
    "l": 77.451
  },
  "oklch": {
    "l": 0.72546,
    "c": 0.15955,
    "h": 297.2
  },
  "luminance": 0.35903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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