#B2318C#B2318C

#B2318C is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.9% C 0.189 H 342.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B2318C
RGBrgb(178, 49, 140)
HSLhsl(318, 57%, 45%)
HSVhsv(318, 72%, 70%)
CMYKcmyk(0%, 72.5%, 21.3%, 30.2%)
CIE-LABlab(43.59, 60.01, -21.57)
CIE-LCHlch(43.59, 63.77, 340.23°)
OKLaboklab(53.87% 0.1801 -0.0579)
OKLCHoklch(53.87% 0.189 342.2)
XYZxyz(24.1928, 13.5575, 26.1486)
Luminance0.1356 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2318C #31B257
analogous
#9731B2 #B2318C #B2314C
triadic
#B2318C #8CB231 #318CB2
tetradic
#B2318C #B29731 #31B257 #314CB2
square
#B2318C #B29731 #31B257 #314CB2
split-complementary
#B2318C #4CB231 #31B297
monochromatic
#521741 #822466 #B2318C #CF51AA #DC81C1

Accessibility & contrast

On white

5.66
#B2318C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B2318C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2318C
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2318C#FFFFFF#000000##FFFFFF
##B2318C1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5A8F
Deuteranopia (green-blind)
#656F89
Tritanopia (blue-blind)
#BD325A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b2318c;
/* rgb */ color: rgb(178, 49, 140);
/* oklch */ color: oklch(53.9% 0.189 342.2);
Tailwind
colors: {
  custom: {
    50: '#cd75ad',
    500: '#b2318c',
    950: '#000000',
  },
}
SCSS
$custom: #b2318c;
$custom-light: #cd75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2318c",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 317.674,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53875,
    "c": 0.18921,
    "h": 342.2
  },
  "luminance": 0.13555
}

Semantic roles & 50–950 ramp

primary
#B2318C
secondary
#79C590
accent
#E07548
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2318C

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

Preview Lab → · Contrast checker → · Palette generator →

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