#B4338A#B4338A

#B4338A is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.3% C 0.187 H 343.8°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B4338A
RGBrgb(180, 51, 138)
HSLhsl(320, 56%, 45%)
HSVhsv(320, 72%, 71%)
CMYKcmyk(0%, 71.7%, 23.3%, 29.4%)
CIE-LABlab(44.10, 59.56, -19.54)
CIE-LCHlch(44.10, 62.68, 341.84°)
OKLaboklab(54.28% 0.1795 -0.0522)
OKLCHoklch(54.28% 0.187 343.8)
XYZxyz(24.5946, 13.9085, 25.4292)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4338A #33B45D
analogous
#9D33B4 #B4338A #B43349
triadic
#B4338A #8AB433 #338AB4
tetradic
#B4338A #B49D33 #33B45D #3349B4
square
#B4338A #B49D33 #33B45D #3349B4
split-complementary
#B4338A #49B433 #33B49D
monochromatic
#551841 #842565 #B4338A #CF55A7 #DC85C0

Accessibility & contrast

On white

5.55
#B4338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B4338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4338A
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4338A#FFFFFF#000000##FFFFFF
##B4338A1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8C
Deuteranopia (green-blind)
#687087
Tritanopia (blue-blind)
#C0335A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b4338a;
/* rgb */ color: rgb(180, 51, 138);
/* oklch */ color: oklch(54.3% 0.187 343.8);
Tailwind
colors: {
  custom: {
    50: '#ce76ac',
    500: '#b4338a',
    950: '#000000',
  },
}
SCSS
$custom: #b4338a;
$custom-light: #ce76ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b4338a",
  "rgb": {
    "r": 180,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 319.535,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54284,
    "c": 0.18697,
    "h": 343.8
  },
  "luminance": 0.13906
}

Semantic roles & 50–950 ramp

primary
#B4338A
secondary
#7DC695
accent
#DF7A49
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B4338A

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

Preview Lab → · Contrast checker → · Palette generator →

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