#B28EF2#B28EF2

#B28EF2 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.0% C 0.145 H 299.3°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B28EF2
RGBrgb(178, 142, 242)
HSLhsl(262, 79%, 75%)
HSVhsv(262, 41%, 95%)
CMYKcmyk(26.4%, 41.3%, 0%, 5.1%)
CIE-LABlab(65.92, 33.85, -45.38)
CIE-LCHlch(65.92, 56.61, 306.72°)
OKLaboklab(71.98% 0.0712 -0.1268)
OKLCHoklch(71.98% 0.145 299.3)
XYZxyz(44.0564, 35.2215, 88.4646)
Luminance0.3522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EF2 #CEF28E
analogous
#8E9CF2 #B28EF2 #E48EF2
triadic
#B28EF2 #F2B28E #8EF2B2
tetradic
#B28EF2 #F28E9C #CEF28E #8EF2E4
square
#B28EF2 #F28E9C #CEF28E #8EF2E4
split-complementary
#B28EF2 #F2E48E #9CF28E
monochromatic
#6720E5 #8D57EC #B28EF2 #D7C5F8 #ECE4FC

Accessibility & contrast

On white

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

On black

8.04
#B28EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EF2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EF2#FFFFFF#000000##000000
##B28EF21.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#7A9FEF
Tritanopia (blue-blind)
#A69FB4
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28ef2;
/* rgb */ color: rgb(178, 142, 242);
/* oklch */ color: oklch(72.0% 0.145 299.3);
Tailwind
colors: {
  custom: {
    50: '#cbaff7',
    500: '#b28ef2',
    950: '#000000',
  },
}
SCSS
$custom: #b28ef2;
$custom-light: #cbaff7;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ef2",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 261.6,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71979,
    "c": 0.14541,
    "h": 299.3
  },
  "luminance": 0.35222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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