#B336B0#B336B0

#B336B0 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.3% C 0.210 H 328.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B336B0
RGBrgb(179, 54, 176)
HSLhsl(301, 54%, 46%)
HSVhsv(301, 70%, 70%)
CMYKcmyk(0%, 69.8%, 1.7%, 29.8%)
CIE-LABlab(46.12, 63.92, -39.14)
CIE-LCHlch(46.12, 74.95, 328.52°)
OKLaboklab(56.3% 0.1796 -0.1081)
OKLCHoklch(56.3% 0.21 328.9)
XYZxyz(27.7458, 15.3587, 42.5690)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336B0 #36B339
analogous
#7736B3 #B336B0 #B33671
triadic
#B336B0 #B0B336 #36B0B3
tetradic
#B336B0 #B37736 #36B339 #3671B3
square
#B336B0 #B37736 #36B339 #3671B3
split-complementary
#B336B0 #71B336 #36B377
monochromatic
#551A54 #842882 #B336B0 #CD59CA #DB88D9

Accessibility & contrast

On white

5.16
#B336B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B336B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336B0
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336B0#FFFFFF#000000##FFFFFF
##B336B01.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B3
Deuteranopia (green-blind)
#5873AD
Tritanopia (blue-blind)
#B9476F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b336b0;
/* rgb */ color: rgb(179, 54, 176);
/* oklch */ color: oklch(56.3% 0.210 328.9);
Tailwind
colors: {
  custom: {
    50: '#cd78c8',
    500: '#b336b0',
    950: '#000000',
  },
}
SCSS
$custom: #b336b0;
$custom-light: #cd78c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b336b0",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 176
  },
  "hsl": {
    "h": 301.44,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56303,
    "c": 0.20963,
    "h": 328.9
  },
  "luminance": 0.15357
}

Semantic roles & 50–950 ramp

primary
#B336B0
secondary
#80C581
accent
#DD4E4B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B336B0

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

Preview Lab → · Contrast checker → · Palette generator →

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