#B256CB#B256CB

#B256CB is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.2% C 0.190 H 318.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B256CB
RGBrgb(178, 86, 203)
HSLhsl(287, 53%, 57%)
HSVhsv(287, 58%, 80%)
CMYKcmyk(12.3%, 57.6%, 0%, 20.4%)
CIE-LABlab(52.32, 55.02, -45.00)
CIE-LCHlch(52.32, 71.07, 320.72°)
OKLaboklab(61.23% 0.1422 -0.1254)
OKLCHoklch(61.23% 0.19 318.6)
XYZxyz(32.4659, 20.4337, 58.7223)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256CB #6FCB56
analogous
#7856CB #B256CB #CB56AA
triadic
#B256CB #CBB256 #56CBB2
tetradic
#B256CB #CB7856 #6FCB56 #56AACB
square
#B256CB #CB7856 #6FCB56 #56AACB
split-complementary
#B256CB #AACB56 #56CB78
monochromatic
#6D277F #9436AE #B256CB #C785D9 #DDB4E8

Accessibility & contrast

On white

4.13
#B256CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#B256CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256CB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256CB#FFFFFF#000000##000000
##B256CB1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B77CF
Deuteranopia (green-blind)
#5C80C8
Tritanopia (blue-blind)
#B26988
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b256cb;
/* rgb */ color: rgb(178, 86, 203);
/* oklch */ color: oklch(61.2% 0.190 318.6);
Tailwind
colors: {
  custom: {
    50: '#cc8adb',
    500: '#b256cb',
    950: '#000000',
  },
}
SCSS
$custom: #b256cb;
$custom-light: #cc8adb;
$custom-dark: #000000;
JSON
{
  "hex": "#b256cb",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 287.179,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61234,
    "c": 0.1896,
    "h": 318.6
  },
  "luminance": 0.20432
}

Semantic roles & 50–950 ramp

primary
#B256CB
secondary
#B1D6A6
accent
#DC4B6A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B256CB

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

Preview Lab → · Contrast checker → · Palette generator →

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