#B336BC#B336BC

#B336BC is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.0% C 0.219 H 325.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B336BC
RGBrgb(179, 54, 188)
HSLhsl(296, 55%, 47%)
HSVhsv(296, 71%, 74%)
CMYKcmyk(4.8%, 71.3%, 0%, 26.3%)
CIE-LABlab(46.78, 65.94, -45.12)
CIE-LCHlch(46.78, 79.90, 325.61°)
OKLaboklab(56.99% 0.1796 -0.1255)
OKLCHoklch(56.99% 0.219 325)
XYZxyz(28.9860, 15.8547, 49.1007)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336BC #3FBC36
analogous
#7036BC #B336BC #BC3682
triadic
#B336BC #BCB336 #36BCB3
tetradic
#B336BC #BC7036 #3FBC36 #3682BC
square
#B336BC #BC7036 #3FBC36 #3682BC
split-complementary
#B336BC #82BC36 #36BC70
monochromatic
#581B5D #86288C #B336BC #C95ED1 #D98EDF

Accessibility & contrast

On white

5.04
#B336BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B336BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336BC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336BC#FFFFFF#000000##FFFFFF
##B336BC1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E65C0
Deuteranopia (green-blind)
#5174B9
Tritanopia (blue-blind)
#B74C76
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b336bc;
/* rgb */ color: rgb(179, 54, 188);
/* oklch */ color: oklch(57.0% 0.219 325.0);
Tailwind
colors: {
  custom: {
    50: '#cd79d1',
    500: '#b336bc',
    950: '#000000',
  },
}
SCSS
$custom: #b336bc;
$custom-light: #cd79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#b336bc",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 188
  },
  "hsl": {
    "h": 295.97,
    "s": 55.372,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56991,
    "c": 0.21913,
    "h": 325
  },
  "luminance": 0.15853
}

Semantic roles & 50–950 ramp

primary
#B336BC
secondary
#89C985
accent
#DF4953
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B336BC

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

Preview Lab → · Contrast checker → · Palette generator →

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