#B28CD9#B28CD9

#B28CD9 is a light, moderate violet. Relative luminance 0.332; OKLCH L 70.4% C 0.117 H 306.3°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#B28CD9
RGBrgb(178, 140, 217)
HSLhsl(270, 50%, 70%)
HSVhsv(270, 35%, 85%)
CMYKcmyk(18%, 35.5%, 0%, 14.9%)
CIE-LABlab(64.35, 29.18, -34.02)
CIE-LCHlch(64.35, 44.82, 310.62°)
OKLaboklab(70.42% 0.069 -0.094)
OKLCHoklch(70.42% 0.117 306.3)
XYZxyz(40.2601, 33.2312, 69.9255)
Luminance0.3323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CD9 #B3D98C
analogous
#8C8DD9 #B28CD9 #D88CD9
triadic
#B28CD9 #D9B28C #8CD9B2
tetradic
#B28CD9 #D98C8D #B3D98C #8CD9D8
square
#B28CD9 #D98C8D #B3D98C #8CD9D8
split-complementary
#B28CD9 #D9D88C #8DD98C
monochromatic
#753AB0 #935ECA #B28CD9 #D1BAE8 #F0E8F7

Accessibility & contrast

On white

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

On black

7.65
#B28CD9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CD9
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CD9#FFFFFF#000000##000000
##B28CD91.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C9BDC
Deuteranopia (green-blind)
#849CD7
Tritanopia (blue-blind)
#AC97A9
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b28cd9;
/* rgb */ color: rgb(178, 140, 217);
/* oklch */ color: oklch(70.4% 0.117 306.3);
Tailwind
colors: {
  custom: {
    50: '#caaee5',
    500: '#b28cd9',
    950: '#000000',
  },
}
SCSS
$custom: #b28cd9;
$custom-light: #caaee5;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cd9",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 217
  },
  "hsl": {
    "h": 269.61,
    "s": 50.327,
    "l": 70
  },
  "oklch": {
    "l": 0.70424,
    "c": 0.1166,
    "h": 306.3
  },
  "luminance": 0.33231
}

Semantic roles & 50–950 ramp

primary
#B28CD9
secondary
#E1EBD6
accent
#BE2874
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131015
muted
#827F84

Preview Lab

Preview with #B28CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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