#B2258E#B2258E

#B2258E is a mid, highly saturated pink. Relative luminance 0.127; OKLCH L 53.0% C 0.203 H 340.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#B2258E
RGBrgb(178, 37, 142)
HSLhsl(315, 66%, 42%)
HSVhsv(315, 79%, 70%)
CMYKcmyk(0%, 79.2%, 20.2%, 30.2%)
CIE-LABlab(42.37, 64.00, -24.67)
CIE-LCHlch(42.37, 68.59, 338.92°)
OKLaboklab(53.02% 0.1918 -0.0665)
OKLCHoklch(53.02% 0.203 340.9)
XYZxyz(23.9049, 12.7436, 26.7868)
Luminance0.1274 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2258E #25B249
analogous
#8F25B2 #B2258E #B22548
triadic
#B2258E #8EB225 #258EB2
tetradic
#B2258E #B28F25 #25B249 #2548B2
square
#B2258E #B28F25 #25B249 #2548B2
split-complementary
#B2258E #48B225 #25B28F
monochromatic
#4D103D #7F1A66 #B2258E #D73DB0 #E170C4

Accessibility & contrast

On white

5.92
#B2258E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B2258E
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2258E#FFFFFF#000000##FFFFFF
##B2258E1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325691
Deuteranopia (green-blind)
#606C8B
Tritanopia (blue-blind)
#BD2958
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2258e;
/* rgb */ color: rgb(178, 37, 142);
/* oklch */ color: oklch(53.0% 0.203 340.9);
Tailwind
colors: {
  custom: {
    50: '#cd70af',
    500: '#b2258e',
    950: '#000000',
  },
}
SCSS
$custom: #b2258e;
$custom-light: #cd70af;
$custom-dark: #000000;
JSON
{
  "hex": "#b2258e",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 315.319,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53023,
    "c": 0.20301,
    "h": 340.9
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#B2258E
secondary
#6BC883
accent
#E96A3F
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2258E

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

Preview Lab → · Contrast checker → · Palette generator →

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