#B56CEC#B56CEC

#B56CEC is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.5% C 0.192 H 308.4°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#B56CEC
RGBrgb(181, 108, 236)
HSLhsl(274, 77%, 67%)
HSVhsv(274, 54%, 93%)
CMYKcmyk(23.3%, 54.2%, 0%, 7.5%)
CIE-LABlab(58.61, 51.72, -53.62)
CIE-LCHlch(58.61, 74.50, 313.97°)
OKLaboklab(66.5% 0.1193 -0.1506)
OKLCHoklch(66.5% 0.192 308.4)
XYZxyz(39.5559, 26.6056, 82.3922)
Luminance0.2661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B56CEC #A3EC6C
analogous
#756CEC #B56CEC #EC6CE3
triadic
#B56CEC #ECB56C #6CECB5
tetradic
#B56CEC #EC756C #A3EC6C #6CE3EC
square
#B56CEC #EC756C #A3EC6C #6CE3EC
split-complementary
#B56CEC #E3EC6C #6CEC75
monochromatic
#7B19C4 #9A36E5 #B56CEC #D0A2F3 #ECD8FA

Accessibility & contrast

On white

3.32
#B56CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#B56CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B56CEC
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B56CEC#FFFFFF#000000##000000
##B56CEC1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#438AF0
Deuteranopia (green-blind)
#5C8EE9
Tritanopia (blue-blind)
#AD83A2
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b56cec;
/* rgb */ color: rgb(181, 108, 236);
/* oklch */ color: oklch(66.5% 0.192 308.4);
Tailwind
colors: {
  custom: {
    50: '#ce99f3',
    500: '#b56cec',
    950: '#000000',
  },
}
SCSS
$custom: #b56cec;
$custom-light: #ce99f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b56cec",
  "rgb": {
    "r": 181,
    "g": 108,
    "b": 236
  },
  "hsl": {
    "h": 274.219,
    "s": 77.108,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66495,
    "c": 0.19214,
    "h": 308.4
  },
  "luminance": 0.26605
}

Semantic roles & 50–950 ramp

primary
#B56CEC
secondary
#D7EEC6
accent
#D90C64
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #B56CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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