#B28AFA#B28AFA

#B28AFA is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.7% C 0.162 H 298.7°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#B28AFA
RGBrgb(178, 138, 250)
HSLhsl(261, 92%, 76%)
HSVhsv(261, 45%, 98%)
CMYKcmyk(28.8%, 44.8%, 0%, 2%)
CIE-LABlab(65.39, 38.00, -50.60)
CIE-LCHlch(65.39, 63.28, 306.91°)
OKLaboklab(71.71% 0.0778 -0.142)
OKLCHoklch(71.71% 0.162 298.7)
XYZxyz(44.6998, 34.5437, 94.7366)
Luminance0.3454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AFA #D2FA8A
analogous
#8A9AFA #B28AFA #EA8AFA
triadic
#B28AFA #FAB28A #8AFAB2
tetradic
#B28AFA #FA8A9A #D2FA8A #8AFAEA
square
#B28AFA #FA8A9A #D2FA8A #8AFAEA
split-complementary
#B28AFA #FAEA8A #9AFA8A
monochromatic
#6515F5 #8B4FF7 #B28AFA #D9C5FD #ECE2FE

Accessibility & contrast

On white

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

On black

7.91
#B28AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AFA
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AFA#FFFFFF#000000##000000
##B28AFA1.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#689FFE
Deuteranopia (green-blind)
#719EF7
Tritanopia (blue-blind)
#A39EB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28afa;
/* rgb */ color: rgb(178, 138, 250);
/* oklch */ color: oklch(71.7% 0.162 298.7);
Tailwind
colors: {
  custom: {
    50: '#cbadfc',
    500: '#b28afa',
    950: '#000000',
  },
}
SCSS
$custom: #b28afa;
$custom-light: #cbadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b28afa",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 261.429,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71706,
    "c": 0.16189,
    "h": 298.7
  },
  "luminance": 0.34544
}

Semantic roles & 50–950 ramp

primary
#B28AFA
secondary
#EAF6D5
accent
#E60094
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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