#B28DF2#B28DF2

#B28DF2 is a light, vivid violet. Relative luminance 0.349; OKLCH L 71.8% C 0.147 H 299.6°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#B28DF2
RGBrgb(178, 141, 242)
HSLhsl(262, 80%, 75%)
HSVhsv(262, 42%, 95%)
CMYKcmyk(26.4%, 41.7%, 0%, 5.1%)
CIE-LABlab(65.69, 34.41, -45.74)
CIE-LCHlch(65.69, 57.24, 306.95°)
OKLaboklab(71.81% 0.0726 -0.1278)
OKLCHoklch(71.81% 0.147 299.6)
XYZxyz(43.9083, 34.9253, 88.4152)
Luminance0.3493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28DF2 #CDF28D
analogous
#8D9AF2 #B28DF2 #E48DF2
triadic
#B28DF2 #F2B28D #8DF2B2
tetradic
#B28DF2 #F28D9A #CDF28D #8DF2E4
square
#B28DF2 #F28D9A #CDF28D #8DF2E4
split-complementary
#B28DF2 #F2E48D #9AF28D
monochromatic
#681FE5 #8D56EC #B28DF2 #D7C4F8 #ECE4FC

Accessibility & contrast

On white

2.63
#B28DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#B28DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28DF2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28DF2#FFFFFF#000000##000000
##B28DF21.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#A69EB4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28df2;
/* rgb */ color: rgb(178, 141, 242);
/* oklch */ color: oklch(71.8% 0.147 299.6);
Tailwind
colors: {
  custom: {
    50: '#cbaff7',
    500: '#b28df2',
    950: '#000000',
  },
}
SCSS
$custom: #b28df2;
$custom-light: #cbaff7;
$custom-dark: #000000;
JSON
{
  "hex": "#b28df2",
  "rgb": {
    "r": 178,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 261.98,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.71806,
    "c": 0.14699,
    "h": 299.6
  },
  "luminance": 0.34926
}

Semantic roles & 50–950 ramp

primary
#B28DF2
secondary
#E9F4D7
accent
#DC0A8F
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #B28DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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