#B2257E#B2257E

#B2257E is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.3% C 0.194 H 347.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#B2257E
RGBrgb(178, 37, 126)
HSLhsl(322, 66%, 42%)
HSVhsv(322, 79%, 70%)
CMYKcmyk(0%, 79.2%, 29.2%, 30.2%)
CIE-LABlab(41.68, 61.98, -15.93)
CIE-LCHlch(41.68, 63.99, 345.59°)
OKLaboklab(52.3% 0.1891 -0.042)
OKLCHoklch(52.3% 0.194 347.5)
XYZxyz(22.7887, 12.2971, 20.9081)
Luminance0.1229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2257E #25B259
analogous
#A025B2 #B2257E #B22537
triadic
#B2257E #7EB225 #257EB2
tetradic
#B2257E #B2A025 #25B259 #2537B2
square
#B2257E #B2A025 #25B259 #2537B2
split-complementary
#B2257E #37B225 #25B2A0
monochromatic
#4D1036 #7F1A5A #B2257E #D73D9E #E170B8

Accessibility & contrast

On white

6.07
#B2257E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#B2257E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2257E
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2257E#FFFFFF#000000##FFFFFF
##B2257E1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#666B7B
Tritanopia (blue-blind)
#BF1E4F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b2257e;
/* rgb */ color: rgb(178, 37, 126);
/* oklch */ color: oklch(52.3% 0.194 347.5);
Tailwind
colors: {
  custom: {
    50: '#ce70a3',
    500: '#b2257e',
    950: '#000000',
  },
}
SCSS
$custom: #b2257e;
$custom-light: #ce70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#b2257e",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 322.128,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52299,
    "c": 0.19367,
    "h": 347.5
  },
  "luminance": 0.12294
}

Semantic roles & 50–950 ramp

primary
#B2257E
secondary
#6BC88D
accent
#E97E3F
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #B2257E

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

Preview Lab → · Contrast checker → · Palette generator →

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