#B336A5#B336A5

#B336A5 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.201 H 332.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B336A5
RGBrgb(179, 54, 165)
HSLhsl(307, 54%, 46%)
HSVhsv(307, 70%, 70%)
CMYKcmyk(0%, 69.8%, 7.8%, 29.8%)
CIE-LABlab(45.55, 62.15, -33.52)
CIE-LCHlch(45.55, 70.62, 331.66°)
OKLaboklab(55.71% 0.179 -0.0919)
OKLCHoklch(55.71% 0.201 332.8)
XYZxyz(26.7012, 14.9408, 37.0676)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336A5 #36B344
analogous
#8236B3 #B336A5 #B33666
triadic
#B336A5 #A5B336 #36A5B3
tetradic
#B336A5 #B38236 #36B344 #3666B3
square
#B336A5 #B38236 #36B344 #3666B3
split-complementary
#B336A5 #66B336 #36B382
monochromatic
#551A4E #84287A #B336A5 #CD59C0 #DB88D2

Accessibility & contrast

On white

5.27
#B336A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B336A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336A5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336A5#FFFFFF#000000##FFFFFF
##B336A51.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3160A8
Deuteranopia (green-blind)
#5E72A2
Tritanopia (blue-blind)
#BB4269
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b336a5;
/* rgb */ color: rgb(179, 54, 165);
/* oklch */ color: oklch(55.7% 0.201 332.8);
Tailwind
colors: {
  custom: {
    50: '#cd78c0',
    500: '#b336a5',
    950: '#000000',
  },
}
SCSS
$custom: #b336a5;
$custom-light: #cd78c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b336a5",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 165
  },
  "hsl": {
    "h": 306.72,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55709,
    "c": 0.20123,
    "h": 332.8
  },
  "luminance": 0.14939
}

Semantic roles & 50–950 ramp

primary
#B336A5
secondary
#80C587
accent
#DD5B4B
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B336A5

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

Preview Lab → · Contrast checker → · Palette generator →

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