#B4338E#B4338E

#B4338E is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.5% C 0.189 H 342.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B4338E
RGBrgb(180, 51, 142)
HSLhsl(318, 56%, 45%)
HSVhsv(318, 72%, 71%)
CMYKcmyk(0%, 71.7%, 21.1%, 29.4%)
CIE-LABlab(44.27, 60.10, -21.71)
CIE-LCHlch(44.27, 63.90, 340.14°)
OKLaboklab(54.46% 0.1803 -0.0582)
OKLCHoklch(54.46% 0.189 342.1)
XYZxyz(24.8895, 14.0264, 26.9825)
Luminance0.1402 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4338E #33B459
analogous
#9933B4 #B4338E #B4334E
triadic
#B4338E #8EB433 #338EB4
tetradic
#B4338E #B49933 #33B459 #334EB4
square
#B4338E #B49933 #33B459 #334EB4
split-complementary
#B4338E #4EB433 #33B499
monochromatic
#551843 #842568 #B4338E #CF55AB #DC85C3

Accessibility & contrast

On white

5.52
#B4338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B4338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4338E
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4338E#FFFFFF#000000##FFFFFF
##B4338E1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5B91
Deuteranopia (green-blind)
#67708B
Tritanopia (blue-blind)
#BF345C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b4338e;
/* rgb */ color: rgb(180, 51, 142);
/* oklch */ color: oklch(54.5% 0.189 342.1);
Tailwind
colors: {
  custom: {
    50: '#ce76af',
    500: '#b4338e',
    950: '#000000',
  },
}
SCSS
$custom: #b4338e;
$custom-light: #ce76af;
$custom-dark: #000000;
JSON
{
  "hex": "#b4338e",
  "rgb": {
    "r": 180,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 317.674,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54463,
    "c": 0.18945,
    "h": 342.1
  },
  "luminance": 0.14024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4338E

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

Preview Lab → · Contrast checker → · Palette generator →

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