#B28CDF#B28CDF

#B28CDF is a light, vivid violet. Relative luminance 0.335; OKLCH L 70.7% C 0.124 H 304.5°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#B28CDF
RGBrgb(178, 140, 223)
HSLhsl(267, 56%, 71%)
HSVhsv(267, 37%, 87%)
CMYKcmyk(20.2%, 37.2%, 0%, 12.5%)
CIE-LABlab(64.60, 30.53, -36.96)
CIE-LCHlch(64.60, 47.94, 309.56°)
OKLaboklab(70.7% 0.0703 -0.1024)
OKLCHoklch(70.7% 0.124 304.5)
XYZxyz(41.0547, 33.5490, 74.1105)
Luminance0.3355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CDF #B9DF8C
analogous
#8C8FDF #B28CDF #DB8CDF
triadic
#B28CDF #DFB28C #8CDFB2
tetradic
#B28CDF #DF8C8F #B9DF8C #8CDFDB
square
#B28CDF #DF8C8F #B9DF8C #8CDFDB
split-complementary
#B28CDF #DFDB8C #8FDF8C
monochromatic
#7334BC #925CD2 #B28CDF #D2BCEC #EFE7F8

Accessibility & contrast

On white

2.72
#B28CDF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#B28CDF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CDF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CDF#FFFFFF#000000##000000
##B28CDF1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#799CE2
Deuteranopia (green-blind)
#819DDD
Tritanopia (blue-blind)
#AB99AB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b28cdf;
/* rgb */ color: rgb(178, 140, 223);
/* oklch */ color: oklch(70.7% 0.124 304.5);
Tailwind
colors: {
  custom: {
    50: '#caaee9',
    500: '#b28cdf',
    950: '#000000',
  },
}
SCSS
$custom: #b28cdf;
$custom-light: #caaee9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cdf",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 223
  },
  "hsl": {
    "h": 267.47,
    "s": 56.463,
    "l": 71.176
  },
  "oklch": {
    "l": 0.70702,
    "c": 0.12425,
    "h": 304.5
  },
  "luminance": 0.33549
}

Semantic roles & 50–950 ramp

primary
#B28CDF
secondary
#E4EED8
accent
#C4217A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #B28CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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