#B2238C#B2238C

#B2238C is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 52.8% C 0.204 H 341.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B2238C
RGBrgb(178, 35, 140)
HSLhsl(316, 67%, 42%)
HSVhsv(316, 80%, 70%)
CMYKcmyk(0%, 80.3%, 21.3%, 30.2%)
CIE-LABlab(42.10, 64.27, -23.88)
CIE-LCHlch(42.10, 68.56, 339.61°)
OKLaboklab(52.79% 0.1932 -0.0643)
OKLCHoklch(52.79% 0.204 341.6)
XYZxyz(23.6956, 12.5630, 25.9829)
Luminance0.1256 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2238C #23B249
analogous
#9123B2 #B2238C #B22345
triadic
#B2238C #8CB223 #238CB2
tetradic
#B2238C #B29123 #23B249 #2345B2
square
#B2238C #B29123 #23B249 #2345B2
split-complementary
#B2238C #45B223 #23B291
monochromatic
#4C0F3C #7F1964 #B2238C #D83AAE #E26DC3

Accessibility & contrast

On white

5.98
#B2238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B2238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2238C
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2238C#FFFFFF#000000##FFFFFF
##B2238C1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#606B89
Tritanopia (blue-blind)
#BD2656
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2238c;
/* rgb */ color: rgb(178, 35, 140);
/* oklch */ color: oklch(52.8% 0.204 341.6);
Tailwind
colors: {
  custom: {
    50: '#cd6fae',
    500: '#b2238c',
    950: '#000000',
  },
}
SCSS
$custom: #b2238c;
$custom-light: #cd6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#b2238c",
  "rgb": {
    "r": 178,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 315.944,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52794,
    "c": 0.20358,
    "h": 341.6
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#B2238C
secondary
#68C982
accent
#EA6C3E
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2238C

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

Preview Lab → · Contrast checker → · Palette generator →

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