#B28CF7#B28CF7

#B28CF7 is a light, vivid violet. Relative luminance 0.349; OKLCH L 71.9% C 0.155 H 298.8°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#B28CF7
RGBrgb(178, 140, 247)
HSLhsl(261, 87%, 76%)
HSVhsv(261, 43%, 97%)
CMYKcmyk(27.9%, 43.3%, 0%, 3.1%)
CIE-LABlab(65.70, 36.16, -48.47)
CIE-LCHlch(65.70, 60.48, 306.73°)
OKLaboklab(71.89% 0.0747 -0.1358)
OKLCHoklch(71.89% 0.155 298.8)
XYZxyz(44.5228, 34.9362, 92.3754)
Luminance0.3494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CF7 #D1F78C
analogous
#8C9BF7 #B28CF7 #E78CF7
triadic
#B28CF7 #F7B28C #8CF7B2
tetradic
#B28CF7 #F78C9B #D1F78C #8CF7E7
square
#B28CF7 #F78C9B #D1F78C #8CF7E7
split-complementary
#B28CF7 #F7E78C #9BF78C
monochromatic
#651AEF #8C53F3 #B28CF7 #D8C5FB #ECE2FD

Accessibility & contrast

On white

2.63
#B28CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#B28CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CF7
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CF7#FFFFFF#000000##000000
##B28CF71.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FB
Deuteranopia (green-blind)
#759FF4
Tritanopia (blue-blind)
#A49FB6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28cf7;
/* rgb */ color: rgb(178, 140, 247);
/* oklch */ color: oklch(71.9% 0.155 298.8);
Tailwind
colors: {
  custom: {
    50: '#cbaefa',
    500: '#b28cf7',
    950: '#000000',
  },
}
SCSS
$custom: #b28cf7;
$custom-light: #cbaefa;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cf7",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 247
  },
  "hsl": {
    "h": 261.308,
    "s": 86.992,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7189,
    "c": 0.15496,
    "h": 298.8
  },
  "luminance": 0.34937
}

Semantic roles & 50–950 ramp

primary
#B28CF7
secondary
#EAF5D6
accent
#E40293
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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