#B23158#B23158

#B23158 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.0% C 0.167 H 7.1°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#B23158
RGBrgb(178, 49, 88)
HSLhsl(342, 57%, 45%)
HSVhsv(342, 72%, 70%)
CMYKcmyk(0%, 72.5%, 50.6%, 30.2%)
CIE-LABlab(41.80, 54.21, 7.93)
CIE-LCHlch(41.80, 54.79, 8.33°)
OKLaboklab(51.97% 0.1652 0.0206)
OKLCHoklch(51.97% 0.167 7.1)
XYZxyz(21.2217, 12.3690, 10.5006)
Luminance0.1237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23158 #31B28B
analogous
#B23199 #B23158 #B24A31
triadic
#B23158 #58B231 #3158B2
tetradic
#B23158 #99B231 #31B28B #4A31B2
square
#B23158 #99B231 #31B28B #4A31B2
split-complementary
#B23158 #31B24A #3199B2
monochromatic
#521729 #822440 #B23158 #CF5177 #DC819D

Accessibility & contrast

On white

6.05
#B23158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#B23158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23158
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23158#FFFFFF#000000##FFFFFF
##B231581.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505259
Deuteranopia (green-blind)
#726C55
Tritanopia (blue-blind)
#C21641
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b23158;
/* rgb */ color: rgb(178, 49, 88);
/* oklch */ color: oklch(52.0% 0.167 7.1);
Tailwind
colors: {
  custom: {
    50: '#cf7386',
    500: '#b23158',
    950: '#000000',
  },
}
SCSS
$custom: #b23158;
$custom-light: #cf7386;
$custom-dark: #000000;
JSON
{
  "hex": "#b23158",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 341.86,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51972,
    "c": 0.1665,
    "h": 7.1
  },
  "luminance": 0.12366
}

Semantic roles & 50–950 ramp

primary
#B23158
secondary
#79C5AE
accent
#E0B248
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15090B
muted
#837B7C

Preview Lab

Preview with #B23158

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

Preview Lab → · Contrast checker → · Palette generator →

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