#B4338C#B4338C

#B4338C is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.4% C 0.188 H 342.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B4338C
RGBrgb(180, 51, 140)
HSLhsl(319, 56%, 45%)
HSVhsv(319, 72%, 71%)
CMYKcmyk(0%, 71.7%, 22.2%, 29.4%)
CIE-LABlab(44.19, 59.83, -20.63)
CIE-LCHlch(44.19, 63.28, 340.98°)
OKLaboklab(54.37% 0.1799 -0.0552)
OKLCHoklch(54.37% 0.188 342.9)
XYZxyz(24.7407, 13.9669, 26.1988)
Luminance0.1396 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4338C #33B45B
analogous
#9C33B4 #B4338C #B4334B
triadic
#B4338C #8CB433 #338CB4
tetradic
#B4338C #B49C33 #33B45B #334BB4
square
#B4338C #B49C33 #33B45B #334BB4
split-complementary
#B4338C #4BB433 #33B49C
monochromatic
#551842 #842567 #B4338C #CF55A9 #DC85C1

Accessibility & contrast

On white

5.54
#B4338C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B4338C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4338C
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4338C#FFFFFF#000000##FFFFFF
##B4338C1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405B8E
Deuteranopia (green-blind)
#677089
Tritanopia (blue-blind)
#BF345B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b4338c;
/* rgb */ color: rgb(180, 51, 140);
/* oklch */ color: oklch(54.4% 0.188 342.9);
Tailwind
colors: {
  custom: {
    50: '#ce76ad',
    500: '#b4338c',
    950: '#000000',
  },
}
SCSS
$custom: #b4338c;
$custom-light: #ce76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b4338c",
  "rgb": {
    "r": 180,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 318.605,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54373,
    "c": 0.1882,
    "h": 342.9
  },
  "luminance": 0.13964
}

Semantic roles & 50–950 ramp

primary
#B4338C
secondary
#7DC694
accent
#DF7749
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B4338C

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

Preview Lab → · Contrast checker → · Palette generator →

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