#B4338F#B4338F

#B4338F is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.5% C 0.190 H 341.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B4338F
RGBrgb(180, 51, 143)
HSLhsl(317, 56%, 45%)
HSVhsv(317, 72%, 71%)
CMYKcmyk(0%, 71.7%, 20.6%, 29.4%)
CIE-LABlab(44.31, 60.24, -22.25)
CIE-LCHlch(44.31, 64.21, 339.73°)
OKLaboklab(54.51% 0.1805 -0.0598)
OKLCHoklch(54.51% 0.19 341.7)
XYZxyz(24.9649, 14.0566, 27.3797)
Luminance0.1405 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4338F #33B458
analogous
#9833B4 #B4338F #B4334F
triadic
#B4338F #8FB433 #338FB4
tetradic
#B4338F #B49833 #33B458 #334FB4
square
#B4338F #B49833 #33B458 #334FB4
split-complementary
#B4338F #4FB433 #33B498
monochromatic
#551843 #842569 #B4338F #CF55AC #DC85C3

Accessibility & contrast

On white

5.51
#B4338F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B4338F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4338F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4338F#FFFFFF#000000##FFFFFF
##B4338F1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5B92
Deuteranopia (green-blind)
#66708C
Tritanopia (blue-blind)
#BF355D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b4338f;
/* rgb */ color: rgb(180, 51, 143);
/* oklch */ color: oklch(54.5% 0.190 341.7);
Tailwind
colors: {
  custom: {
    50: '#ce76b0',
    500: '#b4338f',
    950: '#000000',
  },
}
SCSS
$custom: #b4338f;
$custom-light: #ce76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b4338f",
  "rgb": {
    "r": 180,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 317.209,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54508,
    "c": 0.1901,
    "h": 341.7
  },
  "luminance": 0.14054
}

Semantic roles & 50–950 ramp

primary
#B4338F
secondary
#7DC692
accent
#DF7449
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B4338F

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

Preview Lab → · Contrast checker → · Palette generator →

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