#B56DEC#B56DEC

#B56DEC is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.6% C 0.191 H 308.3°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#B56DEC
RGBrgb(181, 109, 236)
HSLhsl(274, 77%, 68%)
HSVhsv(274, 54%, 93%)
CMYKcmyk(23.3%, 53.8%, 0%, 7.5%)
CIE-LABlab(58.81, 51.20, -53.30)
CIE-LCHlch(58.81, 73.91, 313.85°)
OKLaboklab(66.64% 0.118 -0.1497)
OKLCHoklch(66.64% 0.191 308.3)
XYZxyz(39.6620, 26.8177, 82.4275)
Luminance0.2682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B56DEC #A4EC6D
analogous
#766DEC #B56DEC #EC6DE3
triadic
#B56DEC #ECB56D #6DECB5
tetradic
#B56DEC #EC766D #A4EC6D #6DE3EC
square
#B56DEC #EC766D #A4EC6D #6DE3EC
split-complementary
#B56DEC #E3EC6D #6DEC76
monochromatic
#7B1AC5 #9A37E5 #B56DEC #D0A3F3 #ECD9FA

Accessibility & contrast

On white

3.30
#B56DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#B56DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B56DEC
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B56DEC#FFFFFF#000000##000000
##B56DEC1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#458BF0
Deuteranopia (green-blind)
#5D8EE9
Tritanopia (blue-blind)
#AD84A2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b56dec;
/* rgb */ color: rgb(181, 109, 236);
/* oklch */ color: oklch(66.6% 0.191 308.3);
Tailwind
colors: {
  custom: {
    50: '#ce99f3',
    500: '#b56dec',
    950: '#000000',
  },
}
SCSS
$custom: #b56dec;
$custom-light: #ce99f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b56dec",
  "rgb": {
    "r": 181,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 274.016,
    "s": 76.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.6664,
    "c": 0.19062,
    "h": 308.3
  },
  "luminance": 0.26817
}

Semantic roles & 50–950 ramp

primary
#B56DEC
secondary
#D8EEC7
accent
#D90C65
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #B56DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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