#B28AFD#B28AFD

#B28AFD is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.9% C 0.166 H 298.2°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#B28AFD
RGBrgb(178, 138, 253)
HSLhsl(261, 97%, 77%)
HSVhsv(261, 45%, 99%)
CMYKcmyk(29.6%, 45.5%, 0%, 0.8%)
CIE-LABlab(65.54, 38.73, -52.01)
CIE-LCHlch(65.54, 64.85, 306.68°)
OKLaboklab(71.87% 0.0782 -0.1461)
OKLCHoklch(71.87% 0.166 298.2)
XYZxyz(45.1740, 34.7334, 97.2337)
Luminance0.3473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AFD #D5FD8A
analogous
#8A9CFD #B28AFD #EC8AFD
triadic
#B28AFD #FDB28A #8AFDB2
tetradic
#B28AFD #FD8A9C #D5FD8A #8AFDEC
square
#B28AFD #FD8A9C #D5FD8A #8AFDEC
split-complementary
#B28AFD #FDEC8A #9CFD8A
monochromatic
#6312FB #8A4EFC #B28AFD #DAC6FE #EBE1FE

Accessibility & contrast

On white

2.64
#B28AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#B28AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AFD
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AFD#FFFFFF#000000##000000
##B28AFD1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#669FFF
Deuteranopia (green-blind)
#6F9EFA
Tritanopia (blue-blind)
#A39FB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28afd;
/* rgb */ color: rgb(178, 138, 253);
/* oklch */ color: oklch(71.9% 0.166 298.2);
Tailwind
colors: {
  custom: {
    50: '#ccadfe',
    500: '#b28afd',
    950: '#000000',
  },
}
SCSS
$custom: #b28afd;
$custom-light: #ccadfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b28afd",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 253
  },
  "hsl": {
    "h": 260.87,
    "s": 96.639,
    "l": 76.667
  },
  "oklch": {
    "l": 0.71866,
    "c": 0.16568,
    "h": 298.2
  },
  "luminance": 0.34734
}

Semantic roles & 50–950 ramp

primary
#B28AFD
secondary
#EBF7D4
accent
#E60096
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B28AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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