#B336B4#B336B4

#B336B4 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.213 H 327.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B336B4
RGBrgb(179, 54, 180)
HSLhsl(300, 54%, 46%)
HSVhsv(300, 70%, 71%)
CMYKcmyk(0.6%, 70%, 0%, 29.4%)
CIE-LABlab(46.34, 64.58, -41.15)
CIE-LCHlch(46.34, 76.57, 327.50°)
OKLaboklab(56.53% 0.1797 -0.114)
OKLCHoklch(56.53% 0.213 327.6)
XYZxyz(28.1474, 15.5193, 44.6842)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336B4 #37B436
analogous
#7436B4 #B336B4 #B43676
triadic
#B336B4 #B4B336 #36B4B3
tetradic
#B336B4 #B47436 #37B436 #3676B4
square
#B336B4 #B47436 #37B436 #3676B4
split-complementary
#B336B4 #76B436 #36B474
monochromatic
#551A56 #842885 #B336B4 #CD5ACD #DB89DC

Accessibility & contrast

On white

5.12
#B336B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B336B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336B4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336B4#FFFFFF#000000##FFFFFF
##B336B41.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B8
Deuteranopia (green-blind)
#5673B1
Tritanopia (blue-blind)
#B84971
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b336b4;
/* rgb */ color: rgb(179, 54, 180);
/* oklch */ color: oklch(56.5% 0.213 327.6);
Tailwind
colors: {
  custom: {
    50: '#cd79cb',
    500: '#b336b4',
    950: '#000000',
  },
}
SCSS
$custom: #b336b4;
$custom-light: #cd79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b336b4",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 180
  },
  "hsl": {
    "h": 299.524,
    "s": 53.846,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56527,
    "c": 0.21277,
    "h": 327.6
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#B336B4
secondary
#81C680
accent
#DD4B4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B336B4

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

Preview Lab → · Contrast checker → · Palette generator →

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