#B2258B#B2258B

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

Color values

HEX#B2258B
RGBrgb(178, 37, 139)
HSLhsl(317, 66%, 42%)
HSVhsv(317, 79%, 70%)
CMYKcmyk(0%, 79.2%, 21.9%, 30.2%)
CIE-LABlab(42.24, 63.60, -23.06)
CIE-LCHlch(42.24, 67.65, 340.07°)
OKLaboklab(52.88% 0.1914 -0.062)
OKLCHoklch(52.88% 0.201 342.1)
XYZxyz(23.6827, 12.6547, 25.6165)
Luminance0.1265 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2258B #25B24C
analogous
#9325B2 #B2258B #B22544
triadic
#B2258B #8BB225 #258BB2
tetradic
#B2258B #B29325 #25B24C #2544B2
square
#B2258B #B29325 #25B24C #2544B2
split-complementary
#B2258B #44B225 #25B293
monochromatic
#4D103C #7F1A63 #B2258B #D73DAC #E170C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2258B#FFFFFF#000000##FFFFFF
##B2258B1.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)
#34558E
Deuteranopia (green-blind)
#616C88
Tritanopia (blue-blind)
#BD2756
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2258b;
/* rgb */ color: rgb(178, 37, 139);
/* oklch */ color: oklch(52.9% 0.201 342.1);
Tailwind
colors: {
  custom: {
    50: '#cd70ad',
    500: '#b2258b',
    950: '#000000',
  },
}
SCSS
$custom: #b2258b;
$custom-light: #cd70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2258b",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 316.596,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52881,
    "c": 0.20116,
    "h": 342.1
  },
  "luminance": 0.12652
}

Semantic roles & 50–950 ramp

primary
#B2258B
secondary
#6BC885
accent
#E96E3F
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2258B

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

Preview Lab → · Contrast checker → · Palette generator →

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