#B336C4#B336C4

#B336C4 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.226 H 322.6°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B336C4
RGBrgb(179, 54, 196)
HSLhsl(293, 57%, 49%)
HSVhsv(293, 72%, 77%)
CMYKcmyk(8.7%, 72.4%, 0%, 23.1%)
CIE-LABlab(47.25, 67.33, -49.04)
CIE-LCHlch(47.25, 83.29, 323.93°)
OKLaboklab(57.47% 0.1793 -0.1369)
OKLCHoklch(57.47% 0.226 322.6)
XYZxyz(29.8724, 16.2093, 53.7691)
Luminance0.1621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336C4 #47C436
analogous
#6C36C4 #B336C4 #C4368E
triadic
#B336C4 #C4B336 #36C4B3
tetradic
#B336C4 #C46C36 #47C436 #368EC4
square
#B336C4 #C46C36 #47C436 #368EC4
split-complementary
#B336C4 #8EC436 #36C46C
monochromatic
#5B1C64 #872994 #B336C4 #C763D4 #D893E1

Accessibility & contrast

On white

4.95
#B336C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#B336C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336C4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336C4#FFFFFF#000000##FFFFFF
##B336C41.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#4C75C1
Tritanopia (blue-blind)
#B5507A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b336c4;
/* rgb */ color: rgb(179, 54, 196);
/* oklch */ color: oklch(57.5% 0.226 322.6);
Tailwind
colors: {
  custom: {
    50: '#ce79d6',
    500: '#b336c4',
    950: '#000000',
  },
}
SCSS
$custom: #b336c4;
$custom-light: #ce79d6;
$custom-dark: #000000;
JSON
{
  "hex": "#b336c4",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 196
  },
  "hsl": {
    "h": 292.817,
    "s": 56.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57472,
    "c": 0.22563,
    "h": 322.6
  },
  "luminance": 0.16208
}

Semantic roles & 50–950 ramp

primary
#B336C4
secondary
#91CC89
accent
#E0485A
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B336C4

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

Preview Lab → · Contrast checker → · Palette generator →

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