#B336A8#B336A8

#B336A8 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.9% C 0.203 H 331.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B336A8
RGBrgb(179, 54, 168)
HSLhsl(305, 54%, 46%)
HSVhsv(305, 70%, 70%)
CMYKcmyk(0%, 69.8%, 6.1%, 29.8%)
CIE-LABlab(45.70, 62.63, -35.07)
CIE-LCHlch(45.70, 71.77, 330.75°)
OKLaboklab(55.87% 0.1792 -0.0964)
OKLCHoklch(55.87% 0.203 331.7)
XYZxyz(26.9775, 15.0513, 38.5225)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B336A8 #36B341
analogous
#7F36B3 #B336A8 #B33669
triadic
#B336A8 #A8B336 #36A8B3
tetradic
#B336A8 #B37F36 #36B341 #3669B3
square
#B336A8 #B37F36 #36B341 #3669B3
split-complementary
#B336A8 #69B336 #36B37F
monochromatic
#551A50 #84287C #B336A8 #CD59C3 #DB88D4

Accessibility & contrast

On white

5.24
#B336A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B336A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B336A8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B336A8#FFFFFF#000000##FFFFFF
##B336A81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E61AB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#BA436B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b336a8;
/* rgb */ color: rgb(179, 54, 168);
/* oklch */ color: oklch(55.9% 0.203 331.7);
Tailwind
colors: {
  custom: {
    50: '#cd78c2',
    500: '#b336a8',
    950: '#000000',
  },
}
SCSS
$custom: #b336a8;
$custom-light: #cd78c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b336a8",
  "rgb": {
    "r": 179,
    "g": 54,
    "b": 168
  },
  "hsl": {
    "h": 305.28,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55867,
    "c": 0.20348,
    "h": 331.7
  },
  "luminance": 0.15049
}

Semantic roles & 50–950 ramp

primary
#B336A8
secondary
#80C586
accent
#DD584B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B336A8

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

Preview Lab → · Contrast checker → · Palette generator →

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