#B28BF2#B28BF2

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

Color values

HEX#B28BF2
RGBrgb(178, 139, 242)
HSLhsl(263, 80%, 75%)
HSVhsv(263, 43%, 95%)
CMYKcmyk(26.4%, 42.6%, 0%, 5.1%)
CIE-LABlab(65.23, 35.52, -46.46)
CIE-LCHlch(65.23, 58.49, 307.40°)
OKLaboklab(71.46% 0.0753 -0.1299)
OKLCHoklch(71.46% 0.15 300.1)
XYZxyz(43.6161, 34.3408, 88.3178)
Luminance0.3434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BF2 #CBF28B
analogous
#8B98F2 #B28BF2 #E58BF2
triadic
#B28BF2 #F2B28B #8BF2B2
tetradic
#B28BF2 #F28B98 #CBF28B #8BF2E5
square
#B28BF2 #F28B98 #CBF28B #8BF2E5
split-complementary
#B28BF2 #F2E58B #98F28B
monochromatic
#691DE6 #8D54EC #B28BF2 #D7C2F8 #EDE3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B28BF2#FFFFFF#000000##000000
##B28BF21.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)
#6F9EF6
Deuteranopia (green-blind)
#779EEF
Tritanopia (blue-blind)
#A69DB3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28bf2;
/* rgb */ color: rgb(178, 139, 242);
/* oklch */ color: oklch(71.5% 0.150 300.1);
Tailwind
colors: {
  custom: {
    50: '#cbadf7',
    500: '#b28bf2',
    950: '#000000',
  },
}
SCSS
$custom: #b28bf2;
$custom-light: #cbadf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bf2",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 262.718,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.7146,
    "c": 0.15015,
    "h": 300.1
  },
  "luminance": 0.34341
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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