#B28AF8#B28AF8

#B28AF8 is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.6% C 0.159 H 299.1°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#B28AF8
RGBrgb(178, 138, 248)
HSLhsl(262, 89%, 76%)
HSVhsv(262, 44%, 97%)
CMYKcmyk(28.2%, 44.4%, 0%, 2.7%)
CIE-LABlab(65.29, 37.52, -49.66)
CIE-LCHlch(65.29, 62.24, 307.07°)
OKLaboklab(71.6% 0.0775 -0.1392)
OKLCHoklch(71.6% 0.159 299.1)
XYZxyz(44.3879, 34.4189, 93.0937)
Luminance0.3442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AF8 #D0F88A
analogous
#8A99F8 #B28AF8 #E98AF8
triadic
#B28AF8 #F8B28A #8AF8B2
tetradic
#B28AF8 #F88A99 #D0F88A #8AF8E9
square
#B28AF8 #F88A99 #D0F88A #8AF8E9
split-complementary
#B28AF8 #F8E98A #99F88A
monochromatic
#6617F1 #8C50F5 #B28AF8 #D8C4FB #ECE2FD

Accessibility & contrast

On white

2.66
#B28AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#B28AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AF8
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AF8#FFFFFF#000000##000000
##B28AF81.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9EFC
Deuteranopia (green-blind)
#729EF5
Tritanopia (blue-blind)
#A49EB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28af8;
/* rgb */ color: rgb(178, 138, 248);
/* oklch */ color: oklch(71.6% 0.159 299.1);
Tailwind
colors: {
  custom: {
    50: '#cbadfb',
    500: '#b28af8',
    950: '#000000',
  },
}
SCSS
$custom: #b28af8;
$custom-light: #cbadfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b28af8",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 248
  },
  "hsl": {
    "h": 261.818,
    "s": 88.71,
    "l": 75.686
  },
  "oklch": {
    "l": 0.716,
    "c": 0.15935,
    "h": 299.1
  },
  "luminance": 0.34419
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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