#B28CE2#B28CE2

#B28CE2 is a light, vivid violet. Relative luminance 0.337; OKLCH L 70.8% C 0.128 H 303.6°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#B28CE2
RGBrgb(178, 140, 226)
HSLhsl(267, 60%, 72%)
HSVhsv(267, 38%, 89%)
CMYKcmyk(21.2%, 38.1%, 0%, 11.4%)
CIE-LABlab(64.73, 31.22, -38.42)
CIE-LCHlch(64.73, 49.50, 309.10°)
OKLaboklab(70.84% 0.071 -0.1066)
OKLCHoklch(70.84% 0.128 303.6)
XYZxyz(41.4628, 33.7122, 76.2595)
Luminance0.3371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CE2 #BCE28C
analogous
#8C91E2 #B28CE2 #DD8CE2
triadic
#B28CE2 #E2B28C #8CE2B2
tetradic
#B28CE2 #E28C91 #BCE28C #8CE2DD
square
#B28CE2 #E28C91 #BCE28C #8CE2DD
split-complementary
#B28CE2 #E2DD8C #91E28C
monochromatic
#7131C3 #915BD6 #B28CE2 #D3BDEE #EFE7F9

Accessibility & contrast

On white

2.71
#B28CE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#B28CE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CE2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CE2#FFFFFF#000000##000000
##B28CE21.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#789CE5
Deuteranopia (green-blind)
#809DE0
Tritanopia (blue-blind)
#AA9AAC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b28ce2;
/* rgb */ color: rgb(178, 140, 226);
/* oklch */ color: oklch(70.8% 0.128 303.6);
Tailwind
colors: {
  custom: {
    50: '#caaeeb',
    500: '#b28ce2',
    950: '#000000',
  },
}
SCSS
$custom: #b28ce2;
$custom-light: #caaeeb;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ce2",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 226
  },
  "hsl": {
    "h": 266.512,
    "s": 59.722,
    "l": 71.765
  },
  "oklch": {
    "l": 0.70844,
    "c": 0.12809,
    "h": 303.6
  },
  "luminance": 0.33712
}

Semantic roles & 50–950 ramp

primary
#B28CE2
secondary
#E6F0DA
accent
#C71E7D
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #B28CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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