#B28ECA#B28ECA

#B28ECA is a light, moderate violet. Relative luminance 0.331; OKLCH L 70.1% C 0.094 H 311.3°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#B28ECA
RGBrgb(178, 142, 202)
HSLhsl(276, 36%, 67%)
HSVhsv(276, 30%, 79%)
CMYKcmyk(11.9%, 29.7%, 0%, 20.8%)
CIE-LABlab(64.22, 24.78, -25.85)
CIE-LCHlch(64.22, 35.81, 313.79°)
OKLaboklab(70.13% 0.0622 -0.0707)
OKLCHoklch(70.13% 0.094 311.3)
XYZxyz(38.6919, 33.0757, 60.2116)
Luminance0.3307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28ECA #A6CA8E
analogous
#948ECA #B28ECA #CA8EC4
triadic
#B28ECA #CAB28E #8ECAB2
tetradic
#B28ECA #CA948E #A6CA8E #8EC4CA
square
#B28ECA #CA948E #A6CA8E #8EC4CA
split-complementary
#B28ECA #C4CA8E #8ECA94
monochromatic
#774797 #9664B6 #B28ECA #CEB8DE #EBE1F1

Accessibility & contrast

On white

2.76
#B28ECA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#B28ECA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28ECA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28ECA#FFFFFF#000000##000000
##B28ECA1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#849ACC
Deuteranopia (green-blind)
#8C9CC8
Tritanopia (blue-blind)
#B096A3
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b28eca;
/* rgb */ color: rgb(178, 142, 202);
/* oklch */ color: oklch(70.1% 0.094 311.3);
Tailwind
colors: {
  custom: {
    50: '#c9afda',
    500: '#b28eca',
    950: '#000000',
  },
}
SCSS
$custom: #b28eca;
$custom-light: #c9afda;
$custom-dark: #000000;
JSON
{
  "hex": "#b28eca",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 202
  },
  "hsl": {
    "h": 276,
    "s": 36.145,
    "l": 67.451
  },
  "oklch": {
    "l": 0.7013,
    "c": 0.09422,
    "h": 311.3
  },
  "luminance": 0.33075
}

Semantic roles & 50–950 ramp

primary
#B28ECA
secondary
#D8E3D1
accent
#AF3667
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#131014
muted
#827F83

Preview Lab

Preview with #B28ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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