#B28FEB#B28FEB

#B28FEB is a light, vivid violet. Relative luminance 0.351; OKLCH L 71.8% C 0.135 H 300.6°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#B28FEB
RGBrgb(178, 143, 235)
HSLhsl(263, 70%, 74%)
HSVhsv(263, 39%, 92%)
CMYKcmyk(24.3%, 39.1%, 0%, 7.8%)
CIE-LABlab(65.83, 31.63, -41.67)
CIE-LCHlch(65.83, 52.31, 307.20°)
OKLaboklab(71.81% 0.0686 -0.116)
OKLCHoklch(71.81% 0.135 300.6)
XYZxyz(43.1746, 35.1079, 83.0831)
Luminance0.3511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28FEB #C8EB8F
analogous
#8F9AEB #B28FEB #E08FEB
triadic
#B28FEB #EBB28F #8FEBB2
tetradic
#B28FEB #EB8F9A #C8EB8F #8FEBE0
square
#B28FEB #EB8F9A #C8EB8F #8FEBE0
split-complementary
#B28FEB #EBE08F #9AEB8F
monochromatic
#6B27D8 #8E5BE2 #B28FEB #D6C3F4 #EDE5FA

Accessibility & contrast

On white

2.62
#B28FEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#B28FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28FEB
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28FEB#FFFFFF#000000##000000
##B28FEB1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A0EE
Deuteranopia (green-blind)
#7F9FE9
Tritanopia (blue-blind)
#A89EB2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28feb;
/* rgb */ color: rgb(178, 143, 235);
/* oklch */ color: oklch(71.8% 0.135 300.6);
Tailwind
colors: {
  custom: {
    50: '#cab0f2',
    500: '#b28feb',
    950: '#000000',
  },
}
SCSS
$custom: #b28feb;
$custom-light: #cab0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b28feb",
  "rgb": {
    "r": 178,
    "g": 143,
    "b": 235
  },
  "hsl": {
    "h": 262.826,
    "s": 69.697,
    "l": 74.118
  },
  "oklch": {
    "l": 0.71808,
    "c": 0.13477,
    "h": 300.6
  },
  "luminance": 0.35108
}

Semantic roles & 50–950 ramp

primary
#B28FEB
secondary
#E8F2D9
accent
#D21489
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B28FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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