#B2237F#B2237F

#B2237F is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.2% C 0.196 H 346.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#B2237F
RGBrgb(178, 35, 127)
HSLhsl(321, 67%, 42%)
HSVhsv(321, 80%, 70%)
CMYKcmyk(0%, 80.3%, 28.7%, 30.2%)
CIE-LABlab(41.54, 62.64, -16.77)
CIE-LCHlch(41.54, 64.85, 345.01°)
OKLaboklab(52.2% 0.191 -0.0444)
OKLCHoklch(52.2% 0.196 346.9)
XYZxyz(22.7930, 12.2020, 21.2295)
Luminance0.1220 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2237F #23B256
analogous
#9E23B2 #B2237F #B22337
triadic
#B2237F #7FB223 #237FB2
tetradic
#B2237F #B29E23 #23B256 #2337B2
square
#B2237F #B29E23 #23B256 #2337B2
split-complementary
#B2237F #37B223 #23B29E
monochromatic
#4C0F36 #7F195B #B2237F #D83AA0 #E26DB9

Accessibility & contrast

On white

6.11
#B2237F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#B2237F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2237F
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2237F#FFFFFF#000000##FFFFFF
##B2237F1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5281
Deuteranopia (green-blind)
#656B7C
Tritanopia (blue-blind)
#BF1D4F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b2237f;
/* rgb */ color: rgb(178, 35, 127);
/* oklch */ color: oklch(52.2% 0.196 346.9);
Tailwind
colors: {
  custom: {
    50: '#ce6fa4',
    500: '#b2237f',
    950: '#000000',
  },
}
SCSS
$custom: #b2237f;
$custom-light: #ce6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#b2237f",
  "rgb": {
    "r": 178,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 321.399,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52204,
    "c": 0.19604,
    "h": 346.9
  },
  "luminance": 0.12199
}

Semantic roles & 50–950 ramp

primary
#B2237F
secondary
#68C98B
accent
#EA7B3E
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #B2237F

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

Preview Lab → · Contrast checker → · Palette generator →

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