#B28ECC#B28ECC

#B28ECC is a light, moderate violet. Relative luminance 0.332; OKLCH L 70.2% C 0.097 H 310.5°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#B28ECC
RGBrgb(178, 142, 204)
HSLhsl(275, 38%, 68%)
HSVhsv(275, 30%, 80%)
CMYKcmyk(12.7%, 30.4%, 0%, 20%)
CIE-LABlab(64.30, 25.21, -26.85)
CIE-LCHlch(64.30, 36.83, 313.20°)
OKLaboklab(70.22% 0.0628 -0.0736)
OKLCHoklch(70.22% 0.097 310.5)
XYZxyz(38.9303, 33.1711, 61.4668)
Luminance0.3317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28ECC #A8CC8E
analogous
#938ECC #B28ECC #CC8EC7
triadic
#B28ECC #CCB28E #8ECCB2
tetradic
#B28ECC #CC938E #A8CC8E #8EC7CC
square
#B28ECC #CC938E #A8CC8E #8EC7CC
split-complementary
#B28ECC #C7CC8E #8ECC93
monochromatic
#77469A #9564B9 #B28ECC #CFB8DF #EBE2F2

Accessibility & contrast

On white

2.75
#B28ECC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#B28ECC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28ECC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28ECC#FFFFFF#000000##000000
##B28ECC1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#839ACE
Deuteranopia (green-blind)
#8B9DCA
Tritanopia (blue-blind)
#AF96A4
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b28ecc;
/* rgb */ color: rgb(178, 142, 204);
/* oklch */ color: oklch(70.2% 0.097 310.5);
Tailwind
colors: {
  custom: {
    50: '#c9afdb',
    500: '#b28ecc',
    950: '#000000',
  },
}
SCSS
$custom: #b28ecc;
$custom-light: #c9afdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ecc",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 204
  },
  "hsl": {
    "h": 274.839,
    "s": 37.805,
    "l": 67.843
  },
  "oklch": {
    "l": 0.70215,
    "c": 0.09671,
    "h": 310.5
  },
  "luminance": 0.33171
}

Semantic roles & 50–950 ramp

primary
#B28ECC
secondary
#D9E4D1
accent
#B13569
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #B28ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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