#B56AFB#B56AFB

#B56AFB is a light, highly saturated violet. Relative luminance 0.271; OKLCH L 67.1% C 0.212 H 305.3°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#B56AFB
RGBrgb(181, 106, 251)
HSLhsl(271, 95%, 70%)
HSVhsv(271, 58%, 98%)
CMYKcmyk(27.9%, 57.8%, 0%, 1.6%)
CIE-LABlab(59.06, 56.13, -61.21)
CIE-LCHlch(59.06, 83.05, 312.52°)
OKLaboklab(67.1% 0.1222 -0.1728)
OKLCHoklch(67.1% 0.212 305.3)
XYZxyz(41.6189, 27.0971, 94.2858)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B56AFB #B0FB6A
analogous
#6C6AFB #B56AFB #FB6AF9
triadic
#B56AFB #FBB56A #6AFBB5
tetradic
#B56AFB #FB6C6A #B0FB6A #6AF9FB
square
#B56AFB #FB6C6A #B0FB6A #6AF9FB
split-complementary
#B56AFB #F9FB6A #6AFB6C
monochromatic
#7906E4 #972EF9 #B56AFB #D3A6FD #F0E1FE

Accessibility & contrast

On white

3.27
#B56AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#B56AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B56AFB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B56AFB#FFFFFF#000000##000000
##B56AFB1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8CFF
Deuteranopia (green-blind)
#4D8EF8
Tritanopia (blue-blind)
#A986A9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #b56afb;
/* rgb */ color: rgb(181, 106, 251);
/* oklch */ color: oklch(67.1% 0.212 305.3);
Tailwind
colors: {
  custom: {
    50: '#cf98fd',
    500: '#b56afb',
    950: '#000000',
  },
}
SCSS
$custom: #b56afb;
$custom-light: #cf98fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b56afb",
  "rgb": {
    "r": 181,
    "g": 106,
    "b": 251
  },
  "hsl": {
    "h": 271.034,
    "s": 94.771,
    "l": 70
  },
  "oklch": {
    "l": 0.67102,
    "c": 0.21165,
    "h": 305.3
  },
  "luminance": 0.27097
}

Semantic roles & 50–950 ramp

primary
#B56AFB
secondary
#E0F5CC
accent
#E6006F
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #B56AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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