#B28EF7#B28EF7

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

Color values

HEX#B28EF7
RGBrgb(178, 142, 247)
HSLhsl(261, 87%, 76%)
HSVhsv(261, 43%, 97%)
CMYKcmyk(27.9%, 42.5%, 0%, 3.1%)
CIE-LABlab(66.16, 35.05, -47.75)
CIE-LCHlch(66.16, 59.24, 306.28°)
OKLaboklab(72.23% 0.0721 -0.1337)
OKLCHoklch(72.23% 0.152 298.3)
XYZxyz(44.8177, 35.5260, 92.4737)
Luminance0.3553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EF7 #D3F78E
analogous
#8E9FF7 #B28EF7 #E68EF7
triadic
#B28EF7 #F7B28E #8EF7B2
tetradic
#B28EF7 #F78E9F #D3F78E #8EF7E6
square
#B28EF7 #F78E9F #D3F78E #8EF7E6
split-complementary
#B28EF7 #F7E68E #9FF78E
monochromatic
#641CEF #8B55F3 #B28EF7 #D9C7FB #ECE2FD

Accessibility & contrast

On white

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

On black

8.11
#B28EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EF7
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EF7#FFFFFF#000000##000000
##B28EF71.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A1FB
Deuteranopia (green-blind)
#77A0F4
Tritanopia (blue-blind)
#A4A1B7
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b28ef7;
/* rgb */ color: rgb(178, 142, 247);
/* oklch */ color: oklch(72.2% 0.152 298.3);
Tailwind
colors: {
  custom: {
    50: '#cbaffa',
    500: '#b28ef7',
    950: '#000000',
  },
}
SCSS
$custom: #b28ef7;
$custom-light: #cbaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ef7",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 260.571,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72234,
    "c": 0.15185,
    "h": 298.3
  },
  "luminance": 0.35526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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