#B28EFF#B28EFF

#B28EFF is a light, vivid violet. Relative luminance 0.360; OKLCH L 72.7% C 0.162 H 296.9°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#B28EFF
RGBrgb(178, 142, 255)
HSLhsl(259, 100%, 78%)
HSVhsv(259, 44%, 100%)
CMYKcmyk(30.2%, 44.3%, 0%, 0%)
CIE-LABlab(66.54, 37.00, -51.52)
CIE-LCHlch(66.54, 63.42, 305.69°)
OKLaboklab(72.65% 0.0733 -0.1446)
OKLCHoklch(72.65% 0.162 296.9)
XYZxyz(46.0787, 36.0304, 99.1153)
Luminance0.3603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EFF #DBFF8E
analogous
#8EA2FF #B28EFF #EA8EFF
triadic
#B28EFF #FFB28E #8EFFB2
tetradic
#B28EFF #FF8EA2 #DBFF8E #8EFFEA
square
#B28EFF #FF8EA2 #DBFF8E #8EFFEA
split-complementary
#B28EFF #FFEA8E #A2FF8E
monochromatic
#5F14FF #8851FF #B28EFF #DCCBFF #EAE0FF

Accessibility & contrast

On white

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

On black

8.21
#B28EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EFF
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EFF#FFFFFF#000000##000000
##B28EFF1.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA2FF
Deuteranopia (green-blind)
#72A1FC
Tritanopia (blue-blind)
#A2A3BA
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b28eff;
/* rgb */ color: rgb(178, 142, 255);
/* oklch */ color: oklch(72.7% 0.162 296.9);
Tailwind
colors: {
  custom: {
    50: '#ccafff',
    500: '#b28eff',
    950: '#000000',
  },
}
SCSS
$custom: #b28eff;
$custom-light: #ccafff;
$custom-dark: #000000;
JSON
{
  "hex": "#b28eff",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 255
  },
  "hsl": {
    "h": 259.115,
    "s": 100,
    "l": 77.843
  },
  "oklch": {
    "l": 0.72652,
    "c": 0.16211,
    "h": 296.9
  },
  "luminance": 0.36031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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