#B2258A#B2258A

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

Color values

HEX#B2258A
RGBrgb(178, 37, 138)
HSLhsl(317, 66%, 42%)
HSVhsv(317, 79%, 70%)
CMYKcmyk(0%, 79.2%, 22.5%, 30.2%)
CIE-LABlab(42.19, 63.47, -22.51)
CIE-LCHlch(42.19, 67.35, 340.47°)
OKLaboklab(52.83% 0.1912 -0.0604)
OKLCHoklch(52.83% 0.201 342.5)
XYZxyz(23.6100, 12.6256, 25.2334)
Luminance0.1262 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2258A #25B24D
analogous
#9325B2 #B2258A #B22544
triadic
#B2258A #8AB225 #258AB2
tetradic
#B2258A #B29325 #25B24D #2544B2
square
#B2258A #B29325 #25B24D #2544B2
split-complementary
#B2258A #44B225 #25B293
monochromatic
#4D103B #7F1A63 #B2258A #D73DAB #E170C1

Accessibility & contrast

On white

5.96
#B2258A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B2258A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2258A
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2258A#FFFFFF#000000##FFFFFF
##B2258A1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#626C87
Tritanopia (blue-blind)
#BE2656
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2258a;
/* rgb */ color: rgb(178, 37, 138);
/* oklch */ color: oklch(52.8% 0.201 342.5);
Tailwind
colors: {
  custom: {
    50: '#cd70ac',
    500: '#b2258a',
    950: '#000000',
  },
}
SCSS
$custom: #b2258a;
$custom-light: #cd70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b2258a",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 317.021,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52834,
    "c": 0.20055,
    "h": 342.5
  },
  "luminance": 0.12623
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B2258A

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

Preview Lab → · Contrast checker → · Palette generator →

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