#B28EFA#B28EFA

#B28EFA is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.4% C 0.156 H 297.8°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B28EFA
RGBrgb(178, 142, 250)
HSLhsl(260, 92%, 77%)
HSVhsv(260, 43%, 98%)
CMYKcmyk(28.8%, 43.2%, 0%, 2%)
CIE-LABlab(66.30, 35.78, -49.17)
CIE-LCHlch(66.30, 60.81, 306.04°)
OKLaboklab(72.39% 0.0725 -0.1378)
OKLCHoklch(72.39% 0.156 297.8)
XYZxyz(45.2843, 35.7127, 94.9314)
Luminance0.3571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EFA #D6FA8E
analogous
#8EA0FA #B28EFA #E88EFA
triadic
#B28EFA #FAB28E #8EFAB2
tetradic
#B28EFA #FA8EA0 #D6FA8E #8EFAE8
square
#B28EFA #FA8EA0 #D6FA8E #8EFAE8
split-complementary
#B28EFA #FAE88E #A0FA8E
monochromatic
#6219F5 #8A53F7 #B28EFA #DAC9FD #EBE2FE

Accessibility & contrast

On white

2.58
#B28EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#B28EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EFA
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EFA#FFFFFF#000000##000000
##B28EFA1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA1FE
Deuteranopia (green-blind)
#75A0F7
Tritanopia (blue-blind)
#A3A1B8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b28efa;
/* rgb */ color: rgb(178, 142, 250);
/* oklch */ color: oklch(72.4% 0.156 297.8);
Tailwind
colors: {
  custom: {
    50: '#cbaffc',
    500: '#b28efa',
    950: '#000000',
  },
}
SCSS
$custom: #b28efa;
$custom-light: #cbaffc;
$custom-dark: #000000;
JSON
{
  "hex": "#b28efa",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 250
  },
  "hsl": {
    "h": 260,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.72389,
    "c": 0.1557,
    "h": 297.8
  },
  "luminance": 0.35713
}

Semantic roles & 50–950 ramp

primary
#B28EFA
secondary
#EBF6D5
accent
#E60099
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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