#B336B8#B336B8

#B336B8 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.216 H 326.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#B336B8
RGBrgb(179, 54, 184)
HSLhsl(298, 55%, 47%)
HSVhsv(298, 71%, 72%)
CMYKcmyk(2.7%, 70.7%, 0%, 27.8%)
CIE-LABlab(46.56, 65.25, -43.14)
CIE-LCHlch(46.56, 78.23, 326.53°)
OKLaboklab(56.76% 0.1797 -0.1198)
OKLCHoklch(56.76% 0.216 326.3)
XYZxyz(28.5608, 15.6846, 46.8612)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336B8 #3BB836
analogous
#7236B8 #B336B8 #B8367C
triadic
#B336B8 #B8B336 #36B8B3
tetradic
#B336B8 #B87236 #3BB836 #367CB8
square
#B336B8 #B87236 #3BB836 #367CB8
split-complementary
#B336B8 #7CB836 #36B872
monochromatic
#571A59 #852889 #B336B8 #CB5CCF #DA8BDD

Accessibility & contrast

On white

5.08
#B336B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B336B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336B8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336B8#FFFFFF#000000##FFFFFF
##B336B81.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1864BC
Deuteranopia (green-blind)
#5474B5
Tritanopia (blue-blind)
#B84B74
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b336b8;
/* rgb */ color: rgb(179, 54, 184);
/* oklch */ color: oklch(56.8% 0.216 326.3);
Tailwind
colors: {
  custom: {
    50: '#cd79ce',
    500: '#b336b8',
    950: '#000000',
  },
}
SCSS
$custom: #b336b8;
$custom-light: #cd79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b336b8",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 184
  },
  "hsl": {
    "h": 297.692,
    "s": 54.622,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56757,
    "c": 0.21593,
    "h": 326.3
  },
  "luminance": 0.15683
}

Semantic roles & 50–950 ramp

primary
#B336B8
secondary
#85C782
accent
#DE4A50
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B336B8

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

Preview Lab → · Contrast checker → · Palette generator →

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