#B336C2#B336C2

#B336C2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.224 H 323.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B336C2
RGBrgb(179, 54, 194)
HSLhsl(294, 56%, 49%)
HSVhsv(294, 72%, 76%)
CMYKcmyk(7.7%, 72.2%, 0%, 23.9%)
CIE-LABlab(47.13, 66.98, -48.06)
CIE-LCHlch(47.13, 82.44, 324.34°)
OKLaboklab(57.35% 0.1794 -0.1341)
OKLCHoklch(57.35% 0.224 323.2)
XYZxyz(29.6463, 16.1188, 52.5782)
Luminance0.1612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336C2 #45C236
analogous
#6D36C2 #B336C2 #C2368B
triadic
#B336C2 #C2B336 #36C2B3
tetradic
#B336C2 #C26D36 #45C236 #368BC2
square
#B336C2 #C26D36 #45C236 #368BC2
split-complementary
#B336C2 #8BC236 #36C26D
monochromatic
#5B1B62 #872992 #B336C2 #C762D3 #D892E1

Accessibility & contrast

On white

4.97
#B336C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B336C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336C2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336C2#FFFFFF#000000##FFFFFF
##B336C21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#4D75BF
Tritanopia (blue-blind)
#B64F79
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b336c2;
/* rgb */ color: rgb(179, 54, 194);
/* oklch */ color: oklch(57.4% 0.224 323.2);
Tailwind
colors: {
  custom: {
    50: '#ce79d5',
    500: '#b336c2',
    950: '#000000',
  },
}
SCSS
$custom: #b336c2;
$custom-light: #ce79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b336c2",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 194
  },
  "hsl": {
    "h": 293.571,
    "s": 56.452,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5735,
    "c": 0.22399,
    "h": 323.2
  },
  "luminance": 0.16117
}

Semantic roles & 50–950 ramp

primary
#B336C2
secondary
#8FCC88
accent
#E04858
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B336C2

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

Preview Lab → · Contrast checker → · Palette generator →

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