#B956F2#B956F2

#B956F2 is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.4% C 0.231 H 310.7°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B956F2
RGBrgb(185, 86, 242)
HSLhsl(278, 86%, 64%)
HSVhsv(278, 64%, 95%)
CMYKcmyk(23.6%, 64.5%, 0%, 5.1%)
CIE-LABlab(55.46, 64.65, -61.97)
CIE-LCHlch(55.46, 89.55, 316.21°)
OKLaboklab(64.42% 0.1505 -0.1748)
OKLCHoklch(64.42% 0.231 310.7)
XYZxyz(39.3593, 23.3815, 86.4269)
Luminance0.2338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B956F2 #8FF256
analogous
#6B56F2 #B956F2 #F256DD
triadic
#B956F2 #F2B956 #56F2B9
tetradic
#B956F2 #F26B56 #8FF256 #56DDF2
square
#B956F2 #F26B56 #8FF256 #56DDF2
split-complementary
#B956F2 #DDF256 #56F26B
monochromatic
#7F0FBF #A11DEE #B956F2 #D18FF6 #E8C8FB

Accessibility & contrast

On white

3.70
#B956F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#B956F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B956F2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B956F2#FFFFFF#000000##000000
##B956F21.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#4387EE
Tritanopia (blue-blind)
#B2769D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b956f2;
/* rgb */ color: rgb(185, 86, 242);
/* oklch */ color: oklch(64.4% 0.231 310.7);
Tailwind
colors: {
  custom: {
    50: '#d28cf7',
    500: '#b956f2',
    950: '#000000',
  },
}
SCSS
$custom: #b956f2;
$custom-light: #d28cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b956f2",
  "rgb": {
    "r": 185,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 278.077,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64421,
    "c": 0.2307,
    "h": 310.7
  },
  "luminance": 0.23381
}

Semantic roles & 50–950 ramp

primary
#B956F2
secondary
#CBEDB7
accent
#E20355
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #B956F2

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

Preview Lab → · Contrast checker → · Palette generator →

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