#B336A4#B336A4

#B336A4 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.200 H 333.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B336A4
RGBrgb(179, 54, 164)
HSLhsl(307, 54%, 46%)
HSVhsv(307, 70%, 70%)
CMYKcmyk(0%, 69.8%, 8.4%, 29.8%)
CIE-LABlab(45.50, 62.00, -33.01)
CIE-LCHlch(45.50, 70.23, 331.97°)
OKLaboklab(55.66% 0.1789 -0.0904)
OKLCHoklch(55.66% 0.2 333.2)
XYZxyz(26.6105, 14.9046, 36.5901)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336A4 #36B345
analogous
#8336B3 #B336A4 #B33665
triadic
#B336A4 #A4B336 #36A4B3
tetradic
#B336A4 #B38336 #36B345 #3665B3
square
#B336A4 #B38336 #36B345 #3665B3
split-complementary
#B336A4 #65B336 #36B383
monochromatic
#551A4E #842879 #B336A4 #CD59BF #DB88D1

Accessibility & contrast

On white

5.28
#B336A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B336A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336A4
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336A4#FFFFFF#000000##FFFFFF
##B336A41.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3260A7
Deuteranopia (green-blind)
#5E72A1
Tritanopia (blue-blind)
#BB4269
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b336a4;
/* rgb */ color: rgb(179, 54, 164);
/* oklch */ color: oklch(55.7% 0.200 333.2);
Tailwind
colors: {
  custom: {
    50: '#cd78bf',
    500: '#b336a4',
    950: '#000000',
  },
}
SCSS
$custom: #b336a4;
$custom-light: #cd78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b336a4",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 164
  },
  "hsl": {
    "h": 307.2,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55656,
    "c": 0.20048,
    "h": 333.2
  },
  "luminance": 0.14902
}

Semantic roles & 50–950 ramp

primary
#B336A4
secondary
#80C588
accent
#DD5C4B
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B336A4

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

Preview Lab → · Contrast checker → · Palette generator →

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