#B9338A#B9338A

#B9338A is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.1% C 0.190 H 345.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B9338A
RGBrgb(185, 51, 138)
HSLhsl(321, 57%, 46%)
HSVhsv(321, 72%, 73%)
CMYKcmyk(0%, 72.4%, 25.4%, 27.5%)
CIE-LABlab(44.97, 60.86, -18.14)
CIE-LCHlch(44.97, 63.50, 343.41°)
OKLaboklab(55.08% 0.1842 -0.0482)
OKLCHoklch(55.08% 0.19 345.3)
XYZxyz(25.7799, 14.5197, 25.4847)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9338A #33B962
analogous
#A533B9 #B9338A #B93347
triadic
#B9338A #8AB933 #338AB9
tetradic
#B9338A #B9A533 #33B962 #3347B9
square
#B9338A #B9A533 #33B962 #3347B9
split-complementary
#B9338A #47B933 #33B9A5
monochromatic
#591942 #892666 #B9338A #D158A7 #DE88C0

Accessibility & contrast

On white

5.38
#B9338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B9338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B9338A
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9338A#FFFFFF#000000##FFFFFF
##B9338A1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8C
Deuteranopia (green-blind)
#6C7387
Tritanopia (blue-blind)
#C5315A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b9338a;
/* rgb */ color: rgb(185, 51, 138);
/* oklch */ color: oklch(55.1% 0.190 345.3);
Tailwind
colors: {
  custom: {
    50: '#d277ac',
    500: '#b9338a',
    950: '#000000',
  },
}
SCSS
$custom: #b9338a;
$custom-light: #d277ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b9338a",
  "rgb": {
    "r": 185,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 321.045,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55079,
    "c": 0.19044,
    "h": 345.3
  },
  "luminance": 0.14517
}

Semantic roles & 50–950 ramp

primary
#B9338A
secondary
#80C899
accent
#E07D48
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B9338A

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

Preview Lab → · Contrast checker → · Palette generator →

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