#B256E7#B256E7

#B256E7 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.9% C 0.218 H 310.9°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B256E7
RGBrgb(178, 86, 231)
HSLhsl(278, 75%, 62%)
HSVhsv(278, 63%, 91%)
CMYKcmyk(22.9%, 62.8%, 0%, 9.4%)
CIE-LABlab(53.91, 60.79, -58.35)
CIE-LCHlch(53.91, 84.26, 316.17°)
OKLaboklab(62.9% 0.1424 -0.1644)
OKLCHoklch(62.9% 0.218 310.9)
XYZxyz(36.1090, 21.8909, 77.9090)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256E7 #8BE756
analogous
#6A56E7 #B256E7 #E756D4
triadic
#B256E7 #E7B256 #56E7B2
tetradic
#B256E7 #E76A56 #8BE756 #56D4E7
square
#B256E7 #E76A56 #8BE756 #56D4E7
split-complementary
#B256E7 #D4E756 #56E76A
monochromatic
#7518AA #9A20DF #B256E7 #CA8CEF #E3C1F6

Accessibility & contrast

On white

3.90
#B256E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#B256E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256E7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256E7#FFFFFF#000000##000000
##B256E71.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#077DEB
Deuteranopia (green-blind)
#4683E4
Tritanopia (blue-blind)
#AB7297
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #b256e7;
/* rgb */ color: rgb(178, 86, 231);
/* oklch */ color: oklch(62.9% 0.218 310.9);
Tailwind
colors: {
  custom: {
    50: '#cd8bef',
    500: '#b256e7',
    950: '#000000',
  },
}
SCSS
$custom: #b256e7;
$custom-light: #cd8bef;
$custom-dark: #000000;
JSON
{
  "hex": "#b256e7",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 278.069,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62899,
    "c": 0.21752,
    "h": 310.9
  },
  "luminance": 0.2189
}

Semantic roles & 50–950 ramp

primary
#B256E7
secondary
#C5E7B2
accent
#D70E58
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B256E7

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

Preview Lab → · Contrast checker → · Palette generator →

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