#B2258F#B2258F

#B2258F is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.1% C 0.204 H 340.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B2258F
RGBrgb(178, 37, 143)
HSLhsl(315, 66%, 42%)
HSVhsv(315, 79%, 70%)
CMYKcmyk(0%, 79.2%, 19.7%, 30.2%)
CIE-LABlab(42.42, 64.13, -25.21)
CIE-LCHlch(42.42, 68.91, 338.54°)
OKLaboklab(53.07% 0.1919 -0.0681)
OKLCHoklch(53.07% 0.204 340.5)
XYZxyz(23.9803, 12.7738, 27.1840)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2258F #25B248
analogous
#8F25B2 #B2258F #B22548
triadic
#B2258F #8FB225 #258FB2
tetradic
#B2258F #B28F25 #25B248 #2548B2
square
#B2258F #B28F25 #25B248 #2548B2
split-complementary
#B2258F #48B225 #25B28F
monochromatic
#4D103E #7F1A66 #B2258F #D73DB1 #E170C5

Accessibility & contrast

On white

5.91
#B2258F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B2258F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2258F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2258F#FFFFFF#000000##FFFFFF
##B2258F1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315692
Deuteranopia (green-blind)
#606C8C
Tritanopia (blue-blind)
#BD2A58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2258f;
/* rgb */ color: rgb(178, 37, 143);
/* oklch */ color: oklch(53.1% 0.204 340.5);
Tailwind
colors: {
  custom: {
    50: '#cd70b0',
    500: '#b2258f',
    950: '#000000',
  },
}
SCSS
$custom: #b2258f;
$custom-light: #cd70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b2258f",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 314.894,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53071,
    "c": 0.20364,
    "h": 340.5
  },
  "luminance": 0.12771
}

Semantic roles & 50–950 ramp

primary
#B2258F
secondary
#6BC882
accent
#E9693F
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2258F

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

Preview Lab → · Contrast checker → · Palette generator →

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