#B256EF#B256EF

#B256EF is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.4% C 0.226 H 309.0°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#B256EF
RGBrgb(178, 86, 239)
HSLhsl(276, 83%, 64%)
HSVhsv(276, 64%, 94%)
CMYKcmyk(25.5%, 64%, 0%, 6.3%)
CIE-LABlab(54.40, 62.50, -62.05)
CIE-LCHlch(54.40, 88.07, 315.21°)
OKLaboklab(63.41% 0.142 -0.1753)
OKLCHoklch(63.41% 0.226 309)
XYZxyz(37.2648, 22.3532, 83.9961)
Luminance0.2235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256EF #93EF56
analogous
#6556EF #B256EF #EF56E0
triadic
#B256EF #EFB256 #56EFB2
tetradic
#B256EF #EF6556 #93EF56 #56E0EF
square
#B256EF #EF6556 #93EF56 #56E0EF
split-complementary
#B256EF #E0EF56 #56EF65
monochromatic
#7612B9 #991EEA #B256EF #CB8EF4 #E5C6FA

Accessibility & contrast

On white

3.84
#B256EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#B256EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256EF
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256EF#FFFFFF#000000##000000
##B256EF1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#3D83EC
Tritanopia (blue-blind)
#A9759B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b256ef;
/* rgb */ color: rgb(178, 86, 239);
/* oklch */ color: oklch(63.4% 0.226 309.0);
Tailwind
colors: {
  custom: {
    50: '#cd8bf5',
    500: '#b256ef',
    950: '#000000',
  },
}
SCSS
$custom: #b256ef;
$custom-light: #cd8bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#b256ef",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 276.078,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63408,
    "c": 0.22559,
    "h": 309
  },
  "luminance": 0.22353
}

Semantic roles & 50–950 ramp

primary
#B256EF
secondary
#CBEBB5
accent
#DF065D
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #B256EF

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

Preview Lab → · Contrast checker → · Palette generator →

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