#B4339F#B4339F

#B4339F is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.3% C 0.201 H 335.3°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B4339F
RGBrgb(180, 51, 159)
HSLhsl(310, 56%, 45%)
HSVhsv(310, 72%, 71%)
CMYKcmyk(0%, 71.7%, 11.7%, 29.4%)
CIE-LABlab(45.05, 62.53, -30.73)
CIE-LCHlch(45.05, 69.67, 333.83°)
OKLaboklab(55.28% 0.1826 -0.0839)
OKLCHoklch(55.28% 0.201 335.3)
XYZxyz(26.2646, 14.5765, 34.2244)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4339F #33B448
analogous
#8833B4 #B4339F #B4335F
triadic
#B4339F #9FB433 #339FB4
tetradic
#B4339F #B48833 #33B448 #335FB4
square
#B4339F #B48833 #33B448 #335FB4
split-complementary
#B4339F #5FB433 #33B488
monochromatic
#55184B #842575 #B4339F #CF55BB #DC85CE

Accessibility & contrast

On white

5.36
#B4339F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B4339F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4339F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4339F#FFFFFF#000000##FFFFFF
##B4339F1.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335EA2
Deuteranopia (green-blind)
#60719C
Tritanopia (blue-blind)
#BD3D65
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b4339f;
/* rgb */ color: rgb(180, 51, 159);
/* oklch */ color: oklch(55.3% 0.201 335.3);
Tailwind
colors: {
  custom: {
    50: '#ce77bb',
    500: '#b4339f',
    950: '#000000',
  },
}
SCSS
$custom: #b4339f;
$custom-light: #ce77bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b4339f",
  "rgb": {
    "r": 180,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 309.767,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5528,
    "c": 0.20095,
    "h": 335.3
  },
  "luminance": 0.14574
}

Semantic roles & 50–950 ramp

primary
#B4339F
secondary
#7DC689
accent
#DF6149
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B4339F

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

Preview Lab → · Contrast checker → · Palette generator →

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