#B256F6#B256F6

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

Color values

HEX#B256F6
RGBrgb(178, 86, 246)
HSLhsl(275, 90%, 65%)
HSVhsv(275, 65%, 96%)
CMYKcmyk(27.6%, 65%, 0%, 3.5%)
CIE-LABlab(54.84, 64.03, -65.25)
CIE-LCHlch(54.84, 91.41, 314.46°)
OKLaboklab(63.87% 0.1415 -0.1847)
OKLCHoklch(63.87% 0.233 307.5)
XYZxyz(38.3190, 22.7749, 89.5482)
Luminance0.2277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B256F6 #9AF656
analogous
#6256F6 #B256F6 #F656EA
triadic
#B256F6 #F6B256 #56F6B2
tetradic
#B256F6 #F66256 #9AF656 #56EAF6
square
#B256F6 #F66256 #9AF656 #56EAF6
split-complementary
#B256F6 #EAF656 #56F662
monochromatic
#770BC7 #981CF3 #B256F6 #CC90F9 #E7CAFC

Accessibility & contrast

On white

3.78
#B256F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#B256F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B256F6
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B256F6#FFFFFF#000000##000000
##B256F61.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FB
Deuteranopia (green-blind)
#3384F2
Tritanopia (blue-blind)
#A7789F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b256f6;
/* rgb */ color: rgb(178, 86, 246);
/* oklch */ color: oklch(63.9% 0.233 307.5);
Tailwind
colors: {
  custom: {
    50: '#ce8bfa',
    500: '#b256f6',
    950: '#000000',
  },
}
SCSS
$custom: #b256f6;
$custom-light: #ce8bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b256f6",
  "rgb": {
    "r": 178,
    "g": 86,
    "b": 246
  },
  "hsl": {
    "h": 274.5,
    "s": 89.888,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63865,
    "c": 0.23266,
    "h": 307.5
  },
  "luminance": 0.22774
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B256F6

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

Preview Lab → · Contrast checker → · Palette generator →

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