#B23271#B23271

#B23271 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.9% C 0.173 H 354.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#B23271
RGBrgb(178, 50, 113)
HSLhsl(330, 56%, 45%)
HSVhsv(330, 72%, 70%)
CMYKcmyk(0%, 71.9%, 36.5%, 30.2%)
CIE-LABlab(42.67, 56.32, -6.39)
CIE-LCHlch(42.67, 56.68, 353.53°)
OKLaboklab(52.86% 0.1726 -0.0162)
OKLCHoklch(52.86% 0.173 354.7)
XYZxyz(22.4827, 12.9411, 16.9335)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B23271 #32B273
analogous
#B232B1 #B23271 #B23332
triadic
#B23271 #71B232 #3271B2
tetradic
#B23271 #B1B232 #32B273 #3332B2
square
#B23271 #B1B232 #32B273 #3332B2
split-complementary
#B23271 #32B233 #32B1B2
monochromatic
#521734 #822553 #B23271 #CF5390 #DC82AE

Accessibility & contrast

On white

5.85
#B23271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B23271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B23271
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B23271#FFFFFF#000000##FFFFFF
##B232711.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495673
Deuteranopia (green-blind)
#6D6D6E
Tritanopia (blue-blind)
#C0264D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b23271;
/* rgb */ color: rgb(178, 50, 113);
/* oklch */ color: oklch(52.9% 0.173 354.7);
Tailwind
colors: {
  custom: {
    50: '#ce7499',
    500: '#b23271',
    950: '#000000',
  },
}
SCSS
$custom: #b23271;
$custom-light: #ce7499;
$custom-dark: #000000;
JSON
{
  "hex": "#b23271",
  "rgb": {
    "r": 178,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 330.469,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52864,
    "c": 0.17336,
    "h": 354.7
  },
  "luminance": 0.12938
}

Semantic roles & 50–950 ramp

primary
#B23271
secondary
#7BC5A0
accent
#DF9548
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #B23271

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

Preview Lab → · Contrast checker → · Palette generator →

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