#B256FB#B256FB

#B256FB is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 64.2% C 0.238 H 306.4°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B256FB
RGBrgb(178, 86, 251)
HSLhsl(273, 95%, 66%)
HSVhsv(273, 66%, 98%)
CMYKcmyk(29.1%, 65.7%, 0%, 1.6%)
CIE-LABlab(55.16, 65.12, -67.51)
CIE-LCHlch(55.16, 93.80, 313.97°)
OKLaboklab(64.2% 0.1411 -0.1913)
OKLCHoklch(64.2% 0.238 306.4)
XYZxyz(39.0967, 23.0860, 93.6445)
Luminance0.2309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256FB #9FFB56
analogous
#5F56FB #B256FB #FB56F1
triadic
#B256FB #FBB256 #56FBB2
tetradic
#B256FB #FB5F56 #9FFB56 #56F1FB
square
#B256FB #FB5F56 #9FFB56 #56F1FB
split-complementary
#B256FB #F1FB56 #56FB5F
monochromatic
#7705D2 #971AFA #B256FB #CD92FC #E8CEFE

Accessibility & contrast

On white

3.74
#B256FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#B256FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256FB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256FB#FFFFFF#000000##000000
##B256FB1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#2B85F7
Tritanopia (blue-blind)
#A67AA2
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b256fb;
/* rgb */ color: rgb(178, 86, 251);
/* oklch */ color: oklch(64.2% 0.238 306.4);
Tailwind
colors: {
  custom: {
    50: '#ce8bfe',
    500: '#b256fb',
    950: '#000000',
  },
}
SCSS
$custom: #b256fb;
$custom-light: #ce8bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b256fb",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 251
  },
  "hsl": {
    "h": 273.455,
    "s": 95.376,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64198,
    "c": 0.2377,
    "h": 306.4
  },
  "luminance": 0.23086
}

Semantic roles & 50–950 ramp

primary
#B256FB
secondary
#D3F2BB
accent
#E60066
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #B256FB

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

Preview Lab → · Contrast checker → · Palette generator →

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