#B8338F#B8338F

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

Color values

HEX#B8338F
RGBrgb(184, 51, 143)
HSLhsl(318, 57%, 46%)
HSVhsv(318, 72%, 72%)
CMYKcmyk(0%, 72.3%, 22.3%, 27.8%)
CIE-LABlab(45.00, 61.26, -21.13)
CIE-LCHlch(45.00, 64.80, 340.97°)
OKLaboklab(55.14% 0.1843 -0.0566)
OKLCHoklch(55.14% 0.193 342.9)
XYZxyz(25.9098, 14.5438, 27.4240)
Luminance0.1454 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8338F #33B85C
analogous
#9E33B8 #B8338F #B8334C
triadic
#B8338F #8FB833 #338FB8
tetradic
#B8338F #B89E33 #33B85C #334CB8
square
#B8338F #B89E33 #33B85C #334CB8
split-complementary
#B8338F #4CB833 #33B89E
monochromatic
#581845 #88266A #B8338F #D158AB #DE88C3

Accessibility & contrast

On white

5.37
#B8338F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B8338F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8338F#FFFFFF#000000##FFFFFF
##B8338F1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405C92
Deuteranopia (green-blind)
#69728C
Tritanopia (blue-blind)
#C4345D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b8338f;
/* rgb */ color: rgb(184, 51, 143);
/* oklch */ color: oklch(55.1% 0.193 342.9);
Tailwind
colors: {
  custom: {
    50: '#d177b0',
    500: '#b8338f',
    950: '#000000',
  },
}
SCSS
$custom: #b8338f;
$custom-light: #d177b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b8338f",
  "rgb": {
    "r": 184,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 318.496,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55139,
    "c": 0.19276,
    "h": 342.9
  },
  "luminance": 0.14541
}

Semantic roles & 50–950 ramp

primary
#B8338F
secondary
#7FC895
accent
#E07748
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #B8338F

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

Preview Lab → · Contrast checker → · Palette generator →

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