#B336BA#B336BA

#B336BA is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.218 H 325.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B336BA
RGBrgb(179, 54, 186)
HSLhsl(297, 55%, 47%)
HSVhsv(297, 71%, 73%)
CMYKcmyk(3.8%, 71%, 0%, 27.1%)
CIE-LABlab(46.67, 65.59, -44.13)
CIE-LCHlch(46.67, 79.06, 326.06°)
OKLaboklab(56.87% 0.1797 -0.1227)
OKLCHoklch(56.87% 0.218 325.7)
XYZxyz(28.7719, 15.7691, 47.9732)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336BA #3DBA36
analogous
#7136BA #B336BA #BA367F
triadic
#B336BA #BAB336 #36BAB3
tetradic
#B336BA #BA7136 #3DBA36 #367FBA
square
#B336BA #BA7136 #3DBA36 #367FBA
split-complementary
#B336BA #7FBA36 #36BA71
monochromatic
#581A5B #85288B #B336BA #CA5DD0 #D98DDE

Accessibility & contrast

On white

5.06
#B336BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#B336BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336BA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336BA#FFFFFF#000000##FFFFFF
##B336BA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1465BE
Deuteranopia (green-blind)
#5274B7
Tritanopia (blue-blind)
#B74C75
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b336ba;
/* rgb */ color: rgb(179, 54, 186);
/* oklch */ color: oklch(56.9% 0.218 325.7);
Tailwind
colors: {
  custom: {
    50: '#cd79cf',
    500: '#b336ba',
    950: '#000000',
  },
}
SCSS
$custom: #b336ba;
$custom-light: #cd79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b336ba",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 296.818,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56873,
    "c": 0.21753,
    "h": 325.7
  },
  "luminance": 0.15767
}

Semantic roles & 50–950 ramp

primary
#B336BA
secondary
#87C884
accent
#DE4951
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B336BA

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

Preview Lab → · Contrast checker → · Palette generator →

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