#B28CE6#B28CE6

#B28CE6 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.0% C 0.133 H 302.6°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#B28CE6
RGBrgb(178, 140, 230)
HSLhsl(265, 64%, 73%)
HSVhsv(265, 39%, 90%)
CMYKcmyk(22.6%, 39.1%, 0%, 9.8%)
CIE-LABlab(64.91, 32.14, -40.35)
CIE-LCHlch(64.91, 51.59, 308.54°)
OKLaboklab(71.04% 0.0718 -0.1122)
OKLCHoklch(71.04% 0.133 302.6)
XYZxyz(42.0180, 33.9343, 79.1839)
Luminance0.3393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CE6 #C0E68C
analogous
#8C93E6 #B28CE6 #DF8CE6
triadic
#B28CE6 #E6B28C #8CE6B2
tetradic
#B28CE6 #E68C93 #C0E68C #8CE6DF
square
#B28CE6 #E68C93 #C0E68C #8CE6DF
split-complementary
#B28CE6 #E6DF8C #93E68C
monochromatic
#6F2CCB #905ADB #B28CE6 #D4BEF1 #EEE6FA

Accessibility & contrast

On white

2.70
#B28CE6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#B28CE6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CE6
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CE6#FFFFFF#000000##000000
##B28CE61.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#769DE9
Deuteranopia (green-blind)
#7E9DE4
Tritanopia (blue-blind)
#A99BAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b28ce6;
/* rgb */ color: rgb(178, 140, 230);
/* oklch */ color: oklch(71.0% 0.133 302.6);
Tailwind
colors: {
  custom: {
    50: '#caaeee',
    500: '#b28ce6',
    950: '#000000',
  },
}
SCSS
$custom: #b28ce6;
$custom-light: #caaeee;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ce6",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 230
  },
  "hsl": {
    "h": 265.333,
    "s": 64.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71036,
    "c": 0.13321,
    "h": 302.6
  },
  "luminance": 0.33934
}

Semantic roles & 50–950 ramp

primary
#B28CE6
secondary
#E7F1DA
accent
#CC1981
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #B28CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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