#B336AB#B336AB

#B336AB is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.206 H 330.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B336AB
RGBrgb(179, 54, 171)
HSLhsl(304, 54%, 46%)
HSVhsv(304, 70%, 70%)
CMYKcmyk(0%, 69.8%, 4.5%, 29.8%)
CIE-LABlab(45.86, 63.10, -36.60)
CIE-LCHlch(45.86, 72.95, 329.89°)
OKLaboklab(56.03% 0.1794 -0.1008)
OKLCHoklch(56.03% 0.206 330.7)
XYZxyz(27.2602, 15.1644, 40.0114)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336AB #36B33E
analogous
#7C36B3 #B336AB #B3366C
triadic
#B336AB #ABB336 #36ABB3
tetradic
#B336AB #B37C36 #36B33E #366CB3
square
#B336AB #B37C36 #36B33E #366CB3
split-complementary
#B336AB #6CB336 #36B37C
monochromatic
#551A51 #84287E #B336AB #CD59C6 #DB88D6

Accessibility & contrast

On white

5.21
#B336AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B336AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336AB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336AB#FFFFFF#000000##FFFFFF
##B336AB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B62AE
Deuteranopia (green-blind)
#5B73A8
Tritanopia (blue-blind)
#BA456C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b336ab;
/* rgb */ color: rgb(179, 54, 171);
/* oklch */ color: oklch(56.0% 0.206 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd78c4',
    500: '#b336ab',
    950: '#000000',
  },
}
SCSS
$custom: #b336ab;
$custom-light: #cd78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b336ab",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 303.84,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56028,
    "c": 0.20576,
    "h": 330.7
  },
  "luminance": 0.15162
}

Semantic roles & 50–950 ramp

primary
#B336AB
secondary
#80C584
accent
#DD544B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B336AB

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

Preview Lab → · Contrast checker → · Palette generator →

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