#B28EF3#B28EF3

#B28EF3 is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.0% C 0.147 H 299.1°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#B28EF3
RGBrgb(178, 142, 243)
HSLhsl(261, 81%, 75%)
HSVhsv(261, 42%, 95%)
CMYKcmyk(26.7%, 41.6%, 0%, 4.7%)
CIE-LABlab(65.97, 34.09, -45.86)
CIE-LCHlch(65.97, 57.14, 306.63°)
OKLaboklab(72.03% 0.0714 -0.1282)
OKLCHoklch(72.03% 0.147 299.1)
XYZxyz(44.2070, 35.2818, 89.2577)
Luminance0.3528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EF3 #CFF38E
analogous
#8E9CF3 #B28EF3 #E48EF3
triadic
#B28EF3 #F3B28E #8EF3B2
tetradic
#B28EF3 #F38E9C #CFF38E #8EF3E4
square
#B28EF3 #F38E9C #CFF38E #8EF3E4
split-complementary
#B28EF3 #F3E48E #9CF38E
monochromatic
#671FE7 #8C57ED #B28EF3 #D8C5F9 #ECE3FC

Accessibility & contrast

On white

2.61
#B28EF3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#B28EF3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EF3
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EF3#FFFFFF#000000##000000
##B28EF31.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A0F7
Deuteranopia (green-blind)
#799FF0
Tritanopia (blue-blind)
#A5A0B5
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28ef3;
/* rgb */ color: rgb(178, 142, 243);
/* oklch */ color: oklch(72.0% 0.147 299.1);
Tailwind
colors: {
  custom: {
    50: '#cbaff7',
    500: '#b28ef3',
    950: '#000000',
  },
}
SCSS
$custom: #b28ef3;
$custom-light: #cbaff7;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ef3",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 243
  },
  "hsl": {
    "h": 261.386,
    "s": 80.8,
    "l": 75.49
  },
  "oklch": {
    "l": 0.7203,
    "c": 0.1467,
    "h": 299.1
  },
  "luminance": 0.35282
}

Semantic roles & 50–950 ramp

primary
#B28EF3
secondary
#EAF4D7
accent
#DD0891
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B28EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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