#B42895#B42895

#B42895 is a mid, highly saturated pink. Relative luminance 0.134; OKLCH L 53.9% C 0.206 H 338.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#B42895
RGBrgb(180, 40, 149)
HSLhsl(313, 64%, 43%)
HSVhsv(313, 78%, 71%)
CMYKcmyk(0%, 77.8%, 17.2%, 29.4%)
CIE-LABlab(43.35, 64.57, -27.37)
CIE-LCHlch(43.35, 70.13, 337.03°)
OKLaboklab(53.9% 0.192 -0.0742)
OKLCHoklch(53.9% 0.206 338.9)
XYZxyz(25.0066, 13.3933, 29.6961)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42895 #28B447
analogous
#8D28B4 #B42895 #B4284F
triadic
#B42895 #95B428 #2895B4
tetradic
#B42895 #B48D28 #28B447 #284FB4
square
#B42895 #B48D28 #28B447 #284FB4
split-complementary
#B42895 #4FB428 #28B48D
monochromatic
#501242 #821D6C #B42895 #D544B5 #E176C9

Accessibility & contrast

On white

5.71
#B42895 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B42895 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42895
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42895#FFFFFF#000000##FFFFFF
##B428951.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315998
Deuteranopia (green-blind)
#606E92
Tritanopia (blue-blind)
#BE2F5C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42895;
/* rgb */ color: rgb(180, 40, 149);
/* oklch */ color: oklch(53.9% 0.206 338.9);
Tailwind
colors: {
  custom: {
    50: '#cf72b4',
    500: '#b42895',
    950: '#000000',
  },
}
SCSS
$custom: #b42895;
$custom-light: #cf72b4;
$custom-dark: #000000;
JSON
{
  "hex": "#b42895",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 313.286,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53899,
    "c": 0.2058,
    "h": 338.9
  },
  "luminance": 0.13391
}

Semantic roles & 50–950 ramp

primary
#B42895
secondary
#70C883
accent
#E76641
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42895

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

Preview Lab → · Contrast checker → · Palette generator →

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