#B336B9#B336B9

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

Color values

HEX#B336B9
RGBrgb(179, 54, 185)
HSLhsl(297, 55%, 47%)
HSVhsv(297, 71%, 73%)
CMYKcmyk(3.2%, 70.8%, 0%, 27.5%)
CIE-LABlab(46.61, 65.42, -43.64)
CIE-LCHlch(46.61, 78.64, 326.30°)
OKLaboklab(56.82% 0.1797 -0.1212)
OKLCHoklch(56.82% 0.217 326)
XYZxyz(28.6660, 15.7267, 47.4152)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336B9 #3CB936
analogous
#7236B9 #B336B9 #B9367E
triadic
#B336B9 #B9B336 #36B9B3
tetradic
#B336B9 #B97236 #3CB936 #367EB9
square
#B336B9 #B97236 #3CB936 #367EB9
split-complementary
#B336B9 #7EB936 #36B972
monochromatic
#571A5A #85288A #B336B9 #CA5DD0 #DA8CDD

Accessibility & contrast

On white

5.07
#B336B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B336B9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336B9#FFFFFF#000000##FFFFFF
##B336B91.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1664BD
Deuteranopia (green-blind)
#5374B6
Tritanopia (blue-blind)
#B74B74
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b336b9;
/* rgb */ color: rgb(179, 54, 185);
/* oklch */ color: oklch(56.8% 0.217 326.0);
Tailwind
colors: {
  custom: {
    50: '#cd79ce',
    500: '#b336b9',
    950: '#000000',
  },
}
SCSS
$custom: #b336b9;
$custom-light: #cd79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b336b9",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 185
  },
  "hsl": {
    "h": 297.252,
    "s": 54.812,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56815,
    "c": 0.21673,
    "h": 326
  },
  "luminance": 0.15725
}

Semantic roles & 50–950 ramp

primary
#B336B9
secondary
#86C883
accent
#DE4A50
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B336B9

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

Preview Lab → · Contrast checker → · Palette generator →

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