#B28CD7#B28CD7

#B28CD7 is a light, moderate violet. Relative luminance 0.331; OKLCH L 70.3% C 0.114 H 306.9°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#B28CD7
RGBrgb(178, 140, 215)
HSLhsl(270, 48%, 70%)
HSVhsv(270, 35%, 84%)
CMYKcmyk(17.2%, 34.9%, 0%, 15.7%)
CIE-LABlab(64.26, 28.73, -33.04)
CIE-LCHlch(64.26, 43.79, 311.01°)
OKLaboklab(70.33% 0.0685 -0.0912)
OKLCHoklch(70.33% 0.114 306.9)
XYZxyz(40.0016, 33.1277, 68.5638)
Luminance0.3313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CD7 #B1D78C
analogous
#8D8CD7 #B28CD7 #D78CD7
triadic
#B28CD7 #D7B28C #8CD7B2
tetradic
#B28CD7 #D78D8C #B1D78C #8CD7D7
square
#B28CD7 #D78D8C #B1D78C #8CD7D7
split-complementary
#B28CD7 #D7D78C #8CD78D
monochromatic
#753CAD #945FC7 #B28CD7 #D0B9E7 #EFE7F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B28CD7#FFFFFF#000000##000000
##B28CD71.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)
#7D9ADA
Deuteranopia (green-blind)
#859CD5
Tritanopia (blue-blind)
#AD97A8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #b28cd7;
/* rgb */ color: rgb(178, 140, 215);
/* oklch */ color: oklch(70.3% 0.114 306.9);
Tailwind
colors: {
  custom: {
    50: '#caaee3',
    500: '#b28cd7',
    950: '#000000',
  },
}
SCSS
$custom: #b28cd7;
$custom-light: #caaee3;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cd7",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 215
  },
  "hsl": {
    "h": 270.4,
    "s": 48.387,
    "l": 69.608
  },
  "oklch": {
    "l": 0.70333,
    "c": 0.11406,
    "h": 306.9
  },
  "luminance": 0.33127
}

Semantic roles & 50–950 ramp

primary
#B28CD7
secondary
#DFEAD5
accent
#BC2A72
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #B28CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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