#B28AF6#B28AF6

#B28AF6 is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.5% C 0.157 H 299.5°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#B28AF6
RGBrgb(178, 138, 246)
HSLhsl(262, 86%, 75%)
HSVhsv(262, 44%, 96%)
CMYKcmyk(27.6%, 43.9%, 0%, 3.5%)
CIE-LABlab(65.20, 37.04, -48.72)
CIE-LCHlch(65.20, 61.20, 307.24°)
OKLaboklab(71.5% 0.0772 -0.1365)
OKLCHoklch(71.5% 0.157 299.5)
XYZxyz(44.0793, 34.2955, 91.4683)
Luminance0.3430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AF6 #CEF68A
analogous
#8A98F6 #B28AF6 #E88AF6
triadic
#B28AF6 #F6B28A #8AF6B2
tetradic
#B28AF6 #F68A98 #CEF68A #8AF6E8
square
#B28AF6 #F68A98 #CEF68A #8AF6E8
split-complementary
#B28AF6 #F6E88A #98F68A
monochromatic
#6718ED #8D51F2 #B28AF6 #D7C3FA #ECE3FD

Accessibility & contrast

On white

2.67
#B28AF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#B28AF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AF6
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AF6#FFFFFF#000000##000000
##B28AF61.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9EFA
Deuteranopia (green-blind)
#739DF3
Tritanopia (blue-blind)
#A59DB4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28af6;
/* rgb */ color: rgb(178, 138, 246);
/* oklch */ color: oklch(71.5% 0.157 299.5);
Tailwind
colors: {
  custom: {
    50: '#cbadf9',
    500: '#b28af6',
    950: '#000000',
  },
}
SCSS
$custom: #b28af6;
$custom-light: #cbadf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28af6",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 246
  },
  "hsl": {
    "h": 262.222,
    "s": 85.714,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71495,
    "c": 0.15681,
    "h": 299.5
  },
  "luminance": 0.34296
}

Semantic roles & 50–950 ramp

primary
#B28AF6
secondary
#E9F5D6
accent
#E20390
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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