#B336A2#B336A2

#B336A2 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.6% C 0.199 H 333.9°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B336A2
RGBrgb(179, 54, 162)
HSLhsl(308, 54%, 46%)
HSVhsv(308, 70%, 70%)
CMYKcmyk(0%, 69.8%, 9.5%, 29.8%)
CIE-LABlab(45.40, 61.69, -31.97)
CIE-LCHlch(45.40, 69.48, 332.60°)
OKLaboklab(55.55% 0.1788 -0.0875)
OKLCHoklch(55.55% 0.199 333.9)
XYZxyz(26.4314, 14.8329, 35.6464)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336A2 #36B347
analogous
#8536B3 #B336A2 #B33663
triadic
#B336A2 #A2B336 #36A2B3
tetradic
#B336A2 #B38536 #36B347 #3663B3
square
#B336A2 #B38536 #36B347 #3663B3
split-complementary
#B336A2 #63B336 #36B385
monochromatic
#551A4D #842877 #B336A2 #CD59BD #DB88D0

Accessibility & contrast

On white

5.29
#B336A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B336A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336A2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336A2#FFFFFF#000000##FFFFFF
##B336A21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#BB4168
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b336a2;
/* rgb */ color: rgb(179, 54, 162);
/* oklch */ color: oklch(55.6% 0.199 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd78be',
    500: '#b336a2',
    950: '#000000',
  },
}
SCSS
$custom: #b336a2;
$custom-light: #cd78be;
$custom-dark: #000000;
JSON
{
  "hex": "#b336a2",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 308.16,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55553,
    "c": 0.199,
    "h": 333.9
  },
  "luminance": 0.14831
}

Semantic roles & 50–950 ramp

primary
#B336A2
secondary
#80C589
accent
#DD5F4B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B336A2

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

Preview Lab → · Contrast checker → · Palette generator →

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