#B28AEF#B28AEF

#B28AEF is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.1% C 0.148 H 301.0°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#B28AEF
RGBrgb(178, 138, 239)
HSLhsl(264, 76%, 74%)
HSVhsv(264, 42%, 94%)
CMYKcmyk(25.5%, 42.3%, 0%, 6.3%)
CIE-LABlab(64.86, 35.37, -45.40)
CIE-LCHlch(64.86, 57.55, 307.92°)
OKLaboklab(71.14% 0.0762 -0.1268)
OKLCHoklch(71.14% 0.148 301)
XYZxyz(43.0251, 33.8738, 85.9162)
Luminance0.3387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AEF #C7EF8A
analogous
#8A95EF #B28AEF #E48AEF
triadic
#B28AEF #EFB28A #8AEFB2
tetradic
#B28AEF #EF8A95 #C7EF8A #8AEFE4
square
#B28AEF #EF8A95 #C7EF8A #8AEFE4
split-complementary
#B28AEF #EFE48A #95EF8A
monochromatic
#6B1FE0 #8F54E8 #B28AEF #D5C0F6 #EDE4FB

Accessibility & contrast

On white

2.70
#B28AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#B28AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AEF
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AEF#FFFFFF#000000##000000
##B28AEF1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9DF3
Deuteranopia (green-blind)
#779DEC
Tritanopia (blue-blind)
#A79BB1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b28aef;
/* rgb */ color: rgb(178, 138, 239);
/* oklch */ color: oklch(71.1% 0.148 301.0);
Tailwind
colors: {
  custom: {
    50: '#cbacf4',
    500: '#b28aef',
    950: '#000000',
  },
}
SCSS
$custom: #b28aef;
$custom-light: #cbacf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b28aef",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 263.762,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71135,
    "c": 0.14793,
    "h": 301
  },
  "luminance": 0.33874
}

Semantic roles & 50–950 ramp

primary
#B28AEF
secondary
#E8F3D8
accent
#D80D88
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B28AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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