#B4338B#B4338B

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

Color values

HEX#B4338B
RGBrgb(180, 51, 139)
HSLhsl(319, 56%, 45%)
HSVhsv(319, 72%, 71%)
CMYKcmyk(0%, 71.7%, 22.8%, 29.4%)
CIE-LABlab(44.14, 59.69, -20.09)
CIE-LCHlch(44.14, 62.98, 341.40°)
OKLaboklab(54.33% 0.1797 -0.0537)
OKLCHoklch(54.33% 0.188 343.4)
XYZxyz(24.6673, 13.9376, 25.8122)
Luminance0.1394 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4338B #33B45C
analogous
#9C33B4 #B4338B #B4334A
triadic
#B4338B #8BB433 #338BB4
tetradic
#B4338B #B49C33 #33B45C #334AB4
square
#B4338B #B49C33 #33B45C #334AB4
split-complementary
#B4338B #4AB433 #33B49C
monochromatic
#551841 #842566 #B4338B #CF55A8 #DC85C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4338B#FFFFFF#000000##FFFFFF
##B4338B1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405B8D
Deuteranopia (green-blind)
#687088
Tritanopia (blue-blind)
#C0335B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b4338b;
/* rgb */ color: rgb(180, 51, 139);
/* oklch */ color: oklch(54.3% 0.188 343.4);
Tailwind
colors: {
  custom: {
    50: '#ce76ad',
    500: '#b4338b',
    950: '#000000',
  },
}
SCSS
$custom: #b4338b;
$custom-light: #ce76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b4338b",
  "rgb": {
    "r": 180,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 319.07,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54328,
    "c": 0.18758,
    "h": 343.4
  },
  "luminance": 0.13935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4338B

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

Preview Lab → · Contrast checker → · Palette generator →

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