#B256F9#B256F9

#B256F9 is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 64.1% C 0.236 H 306.8°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#B256F9
RGBrgb(178, 86, 249)
HSLhsl(274, 93%, 66%)
HSVhsv(274, 65%, 98%)
CMYKcmyk(28.5%, 65.5%, 0%, 2.4%)
CIE-LABlab(55.03, 64.68, -66.60)
CIE-LCHlch(55.03, 92.84, 314.16°)
OKLaboklab(64.06% 0.1412 -0.1887)
OKLCHoklch(64.06% 0.236 306.8)
XYZxyz(38.7831, 22.9605, 91.9929)
Luminance0.2296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256F9 #9DF956
analogous
#6056F9 #B256F9 #F956EF
triadic
#B256F9 #F9B256 #56F9B2
tetradic
#B256F9 #F96056 #9DF956 #56EFF9
square
#B256F9 #F96056 #9DF956 #56EFF9
split-complementary
#B256F9 #EFF956 #56F960
monochromatic
#7707CD #971BF7 #B256F9 #CD91FB #E8CCFD

Accessibility & contrast

On white

3.76
#B256F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#B256F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256F9
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256F9#FFFFFF#000000##000000
##B256F91.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FE
Deuteranopia (green-blind)
#2E84F5
Tritanopia (blue-blind)
#A679A1
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b256f9;
/* rgb */ color: rgb(178, 86, 249);
/* oklch */ color: oklch(64.1% 0.236 306.8);
Tailwind
colors: {
  custom: {
    50: '#ce8bfc',
    500: '#b256f9',
    950: '#000000',
  },
}
SCSS
$custom: #b256f9;
$custom-light: #ce8bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b256f9",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 249
  },
  "hsl": {
    "h": 273.865,
    "s": 93.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64064,
    "c": 0.23568,
    "h": 306.8
  },
  "luminance": 0.2296
}

Semantic roles & 50–950 ramp

primary
#B256F9
secondary
#D2F1BA
accent
#E60064
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #B256F9

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

Preview Lab → · Contrast checker → · Palette generator →

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