#B2318B#B2318B

#B2318B is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.8% C 0.189 H 342.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B2318B
RGBrgb(178, 49, 139)
HSLhsl(318, 57%, 45%)
HSVhsv(318, 72%, 70%)
CMYKcmyk(0%, 72.5%, 21.9%, 30.2%)
CIE-LABlab(43.55, 59.88, -21.03)
CIE-LCHlch(43.55, 63.46, 340.65°)
OKLaboklab(53.83% 0.18 -0.0563)
OKLCHoklch(53.83% 0.189 342.6)
XYZxyz(24.1194, 13.5281, 25.7620)
Luminance0.1353 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2318B #31B258
analogous
#9931B2 #B2318B #B2314A
triadic
#B2318B #8BB231 #318BB2
tetradic
#B2318B #B29931 #31B258 #314AB2
square
#B2318B #B29931 #31B258 #314AB2
split-complementary
#B2318B #4AB231 #31B299
monochromatic
#521740 #822466 #B2318B #CF51A9 #DC81C1

Accessibility & contrast

On white

5.67
#B2318B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B2318B
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2318B#FFFFFF#000000##FFFFFF
##B2318B1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2318b;
/* rgb */ color: rgb(178, 49, 139);
/* oklch */ color: oklch(53.8% 0.189 342.6);
Tailwind
colors: {
  custom: {
    50: '#cd75ad',
    500: '#b2318b',
    950: '#000000',
  },
}
SCSS
$custom: #b2318b;
$custom-light: #cd75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2318b",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 318.14,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5383,
    "c": 0.18859,
    "h": 342.6
  },
  "luminance": 0.13526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B2318B

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

Preview Lab → · Contrast checker → · Palette generator →

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