#B336B7#B336B7

#B336B7 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.215 H 326.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B336B7
RGBrgb(179, 54, 183)
HSLhsl(298, 54%, 46%)
HSVhsv(298, 70%, 72%)
CMYKcmyk(2.2%, 70.5%, 0%, 28.2%)
CIE-LABlab(46.50, 65.08, -42.65)
CIE-LCHlch(46.50, 77.81, 326.77°)
OKLaboklab(56.7% 0.1797 -0.1183)
OKLCHoklch(56.7% 0.215 326.6)
XYZxyz(28.4563, 15.6429, 46.3111)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336B7 #3AB736
analogous
#7336B7 #B336B7 #B7367B
triadic
#B336B7 #B7B336 #36B7B3
tetradic
#B336B7 #B77336 #3AB736 #367BB7
square
#B336B7 #B77336 #3AB736 #367BB7
split-complementary
#B336B7 #7BB736 #36B773
monochromatic
#571A58 #852888 #B336B7 #CB5BCF #DA8BDD

Accessibility & contrast

On white

5.09
#B336B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B336B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336B7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336B7#FFFFFF#000000##FFFFFF
##B336B71.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A64BB
Deuteranopia (green-blind)
#5474B4
Tritanopia (blue-blind)
#B84A73
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b336b7;
/* rgb */ color: rgb(179, 54, 183);
/* oklch */ color: oklch(56.7% 0.215 326.6);
Tailwind
colors: {
  custom: {
    50: '#cd79cd',
    500: '#b336b7',
    950: '#000000',
  },
}
SCSS
$custom: #b336b7;
$custom-light: #cd79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b336b7",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 183
  },
  "hsl": {
    "h": 298.14,
    "s": 54.43,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56699,
    "c": 0.21514,
    "h": 326.6
  },
  "luminance": 0.15641
}

Semantic roles & 50–950 ramp

primary
#B336B7
secondary
#84C782
accent
#DE4A4F
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B336B7

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

Preview Lab → · Contrast checker → · Palette generator →

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