#B336BB#B336BB

#B336BB is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.218 H 325.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B336BB
RGBrgb(179, 54, 187)
HSLhsl(296, 55%, 47%)
HSVhsv(296, 71%, 73%)
CMYKcmyk(4.3%, 71.1%, 0%, 26.7%)
CIE-LABlab(46.73, 65.76, -44.63)
CIE-LCHlch(46.73, 79.48, 325.84°)
OKLaboklab(56.93% 0.1796 -0.1241)
OKLCHoklch(56.93% 0.218 325.4)
XYZxyz(28.8786, 15.8118, 48.5350)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336BB #3EBB36
analogous
#7136BB #B336BB #BB3681
triadic
#B336BB #BBB336 #36BBB3
tetradic
#B336BB #BB7136 #3EBB36 #3681BB
square
#B336BB #BB7136 #3EBB36 #3681BB
split-complementary
#B336BB #81BB36 #36BB71
monochromatic
#581B5C #86288C #B336BB #CA5ED0 #D98DDE

Accessibility & contrast

On white

5.05
#B336BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B336BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336BB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336BB#FFFFFF#000000##FFFFFF
##B336BB1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1165BF
Deuteranopia (green-blind)
#5274B8
Tritanopia (blue-blind)
#B74C75
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b336bb;
/* rgb */ color: rgb(179, 54, 187);
/* oklch */ color: oklch(56.9% 0.218 325.4);
Tailwind
colors: {
  custom: {
    50: '#cd79d0',
    500: '#b336bb',
    950: '#000000',
  },
}
SCSS
$custom: #b336bb;
$custom-light: #cd79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#b336bb",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 187
  },
  "hsl": {
    "h": 296.391,
    "s": 55.187,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56932,
    "c": 0.21833,
    "h": 325.4
  },
  "luminance": 0.1581
}

Semantic roles & 50–950 ramp

primary
#B336BB
secondary
#88C984
accent
#DF4952
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B336BB

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

Preview Lab → · Contrast checker → · Palette generator →

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