#B2238F#B2238F

#B2238F is a mid, highly saturated pink. Relative luminance 0.127; OKLCH L 52.9% C 0.205 H 340.4°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#B2238F
RGBrgb(178, 35, 143)
HSLhsl(315, 67%, 42%)
HSVhsv(315, 80%, 70%)
CMYKcmyk(0%, 80.3%, 19.7%, 30.2%)
CIE-LABlab(42.24, 64.66, -25.50)
CIE-LCHlch(42.24, 69.51, 338.48°)
OKLaboklab(52.94% 0.1936 -0.0689)
OKLCHoklch(52.94% 0.205 340.4)
XYZxyz(23.9198, 12.6527, 27.1638)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2238F #23B246
analogous
#8E23B2 #B2238F #B22348
triadic
#B2238F #8FB223 #238FB2
tetradic
#B2238F #B28E23 #23B246 #2348B2
square
#B2238F #B28E23 #23B246 #2348B2
split-complementary
#B2238F #48B223 #23B28E
monochromatic
#4C0F3D #7F1966 #B2238F #D83AB2 #E26DC6

Accessibility & contrast

On white

5.95
#B2238F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#B2238F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2238F
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2238F#FFFFFF#000000##FFFFFF
##B2238F1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305592
Deuteranopia (green-blind)
#5F6C8C
Tritanopia (blue-blind)
#BD2858
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2238f;
/* rgb */ color: rgb(178, 35, 143);
/* oklch */ color: oklch(52.9% 0.205 340.4);
Tailwind
colors: {
  custom: {
    50: '#cd70b0',
    500: '#b2238f',
    950: '#000000',
  },
}
SCSS
$custom: #b2238f;
$custom-light: #cd70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b2238f",
  "rgb": {
    "r": 178,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 314.685,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52938,
    "c": 0.20544,
    "h": 340.4
  },
  "luminance": 0.1265
}

Semantic roles & 50–950 ramp

primary
#B2238F
secondary
#68C980
accent
#EA683E
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2238F

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

Preview Lab → · Contrast checker → · Palette generator →

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