#B256EB#B256EB

#B256EB is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 63.2% C 0.222 H 309.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B256EB
RGBrgb(178, 86, 235)
HSLhsl(277, 79%, 63%)
HSVhsv(277, 63%, 92%)
CMYKcmyk(24.3%, 63.4%, 0%, 7.8%)
CIE-LABlab(54.15, 61.64, -60.20)
CIE-LCHlch(54.15, 86.16, 315.68°)
OKLaboklab(63.15% 0.1422 -0.1699)
OKLCHoklch(63.15% 0.222 309.9)
XYZxyz(36.6804, 22.1194, 80.9183)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256EB #8FEB56
analogous
#6756EB #B256EB #EB56D9
triadic
#B256EB #EBB256 #56EBB2
tetradic
#B256EB #EB6756 #8FEB56 #56D9EB
square
#B256EB #EB6756 #8FEB56 #56D9EB
split-complementary
#B256EB #D9EB56 #56EB67
monochromatic
#7615B2 #991FE5 #B256EB #CB8DF1 #E4C3F8

Accessibility & contrast

On white

3.87
#B256EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#B256EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256EB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256EB#FFFFFF#000000##000000
##B256EB1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#4283E8
Tritanopia (blue-blind)
#AA7499
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b256eb;
/* rgb */ color: rgb(178, 86, 235);
/* oklch */ color: oklch(63.2% 0.222 309.9);
Tailwind
colors: {
  custom: {
    50: '#cd8bf2',
    500: '#b256eb',
    950: '#000000',
  },
}
SCSS
$custom: #b256eb;
$custom-light: #cd8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b256eb",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 277.047,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63152,
    "c": 0.22155,
    "h": 309.9
  },
  "luminance": 0.22119
}

Semantic roles & 50–950 ramp

primary
#B256EB
secondary
#C8E9B4
accent
#DB0A5A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #B256EB

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

Preview Lab → · Contrast checker → · Palette generator →

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