#B336A9#B336A9

#B336A9 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.204 H 331.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B336A9
RGBrgb(179, 54, 169)
HSLhsl(305, 54%, 46%)
HSVhsv(305, 70%, 70%)
CMYKcmyk(0%, 69.8%, 5.6%, 29.8%)
CIE-LABlab(45.76, 62.78, -35.58)
CIE-LCHlch(45.76, 72.16, 330.46°)
OKLaboklab(55.92% 0.1793 -0.0979)
OKLCHoklch(55.92% 0.204 331.4)
XYZxyz(27.0710, 15.0887, 39.0150)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336A9 #36B340
analogous
#7E36B3 #B336A9 #B3366A
triadic
#B336A9 #A9B336 #36A9B3
tetradic
#B336A9 #B37E36 #36B340 #366AB3
square
#B336A9 #B37E36 #36B340 #366AB3
split-complementary
#B336A9 #6AB336 #36B37E
monochromatic
#551A50 #84287D #B336A9 #CD59C4 #DB88D5

Accessibility & contrast

On white

5.23
#B336A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B336A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336A9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336A9#FFFFFF#000000##FFFFFF
##B336A91.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AC
Deuteranopia (green-blind)
#5C73A6
Tritanopia (blue-blind)
#BA446B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b336a9;
/* rgb */ color: rgb(179, 54, 169);
/* oklch */ color: oklch(55.9% 0.204 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd78c3',
    500: '#b336a9',
    950: '#000000',
  },
}
SCSS
$custom: #b336a9;
$custom-light: #cd78c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b336a9",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 169
  },
  "hsl": {
    "h": 304.8,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5592,
    "c": 0.20424,
    "h": 331.4
  },
  "luminance": 0.15087
}

Semantic roles & 50–950 ramp

primary
#B336A9
secondary
#80C585
accent
#DD564B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B336A9

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

Preview Lab → · Contrast checker → · Palette generator →

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