#B9338C#B9338C

#B9338C is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.2% C 0.192 H 344.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B9338C
RGBrgb(185, 51, 140)
HSLhsl(320, 57%, 46%)
HSVhsv(320, 72%, 73%)
CMYKcmyk(0%, 72.4%, 24.3%, 27.5%)
CIE-LABlab(45.05, 61.12, -19.22)
CIE-LCHlch(45.05, 64.07, 342.54°)
OKLaboklab(55.17% 0.1847 -0.0512)
OKLCHoklch(55.17% 0.192 344.5)
XYZxyz(25.9261, 14.5781, 26.2544)
Luminance0.1457 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9338C #33B960
analogous
#A333B9 #B9338C #B93349
triadic
#B9338C #8CB933 #338CB9
tetradic
#B9338C #B9A333 #33B960 #3349B9
square
#B9338C #B9A333 #33B960 #3349B9
split-complementary
#B9338C #49B933 #33B9A3
monochromatic
#591943 #892668 #B9338C #D158A8 #DE88C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9338C#FFFFFF#000000##FFFFFF
##B9338C1.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)
#425C8E
Deuteranopia (green-blind)
#6B7389
Tritanopia (blue-blind)
#C5325B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b9338c;
/* rgb */ color: rgb(185, 51, 140);
/* oklch */ color: oklch(55.2% 0.192 344.5);
Tailwind
colors: {
  custom: {
    50: '#d277ad',
    500: '#b9338c',
    950: '#000000',
  },
}
SCSS
$custom: #b9338c;
$custom-light: #d277ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b9338c",
  "rgb": {
    "r": 185,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 320.149,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55166,
    "c": 0.19162,
    "h": 344.5
  },
  "luminance": 0.14575
}

Semantic roles & 50–950 ramp

primary
#B9338C
secondary
#80C898
accent
#E07B48
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B9338C

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

Preview Lab → · Contrast checker → · Palette generator →

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