#B28AF7#B28AF7

#B28AF7 is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.5% C 0.158 H 299.3°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#B28AF7
RGBrgb(178, 138, 247)
HSLhsl(262, 87%, 75%)
HSVhsv(262, 44%, 97%)
CMYKcmyk(27.9%, 44.1%, 0%, 3.1%)
CIE-LABlab(65.25, 37.28, -49.19)
CIE-LCHlch(65.25, 61.72, 307.16°)
OKLaboklab(71.55% 0.0774 -0.1378)
OKLCHoklch(71.55% 0.158 299.3)
XYZxyz(44.2332, 34.3570, 92.2789)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AF7 #CFF78A
analogous
#8A98F7 #B28AF7 #E88AF7
triadic
#B28AF7 #F7B28A #8AF7B2
tetradic
#B28AF7 #F78A98 #CFF78A #8AF7E8
square
#B28AF7 #F78A98 #CFF78A #8AF7E8
split-complementary
#B28AF7 #F7E88A #98F78A
monochromatic
#6717EF #8C51F3 #B28AF7 #D8C3FB #ECE2FD

Accessibility & contrast

On white

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

On black

7.87
#B28AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AF7
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AF7#FFFFFF#000000##000000
##B28AF71.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9EFB
Deuteranopia (green-blind)
#739EF4
Tritanopia (blue-blind)
#A49DB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28af7;
/* rgb */ color: rgb(178, 138, 247);
/* oklch */ color: oklch(71.5% 0.158 299.3);
Tailwind
colors: {
  custom: {
    50: '#cbadfa',
    500: '#b28af7',
    950: '#000000',
  },
}
SCSS
$custom: #b28af7;
$custom-light: #cbadfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b28af7",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 262.018,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71548,
    "c": 0.15808,
    "h": 299.3
  },
  "luminance": 0.34357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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