#B256F7#B256F7

#B256F7 is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.9% C 0.234 H 307.2°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B256F7
RGBrgb(178, 86, 247)
HSLhsl(274, 91%, 65%)
HSVhsv(274, 65%, 97%)
CMYKcmyk(27.9%, 65.2%, 0%, 3.1%)
CIE-LABlab(54.90, 64.25, -65.70)
CIE-LCHlch(54.90, 91.89, 314.36°)
OKLaboklab(63.93% 0.1414 -0.186)
OKLCHoklch(63.93% 0.234 307.2)
XYZxyz(38.4729, 22.8364, 90.3588)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256F7 #9BF756
analogous
#6256F7 #B256F7 #F756EB
triadic
#B256F7 #F7B256 #56F7B2
tetradic
#B256F7 #F76256 #9BF756 #56EBF7
square
#B256F7 #F76256 #9BF756 #56EBF7
split-complementary
#B256F7 #EBF756 #56F762
monochromatic
#770AC9 #971CF4 #B256F7 #CD90FA #E7CBFD

Accessibility & contrast

On white

3.77
#B256F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#B256F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256F7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256F7#FFFFFF#000000##000000
##B256F71.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FC
Deuteranopia (green-blind)
#3284F3
Tritanopia (blue-blind)
#A7789F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b256f7;
/* rgb */ color: rgb(178, 86, 247);
/* oklch */ color: oklch(63.9% 0.234 307.2);
Tailwind
colors: {
  custom: {
    50: '#ce8bfb',
    500: '#b256f7',
    950: '#000000',
  },
}
SCSS
$custom: #b256f7;
$custom-light: #ce8bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b256f7",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 247
  },
  "hsl": {
    "h": 274.286,
    "s": 90.96,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63931,
    "c": 0.23367,
    "h": 307.2
  },
  "luminance": 0.22836
}

Semantic roles & 50–950 ramp

primary
#B256F7
secondary
#D1F0B9
accent
#E60062
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B256F7

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

Preview Lab → · Contrast checker → · Palette generator →

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