#B42495#B42495

#B42495 is a mid, highly saturated pink. Relative luminance 0.131; OKLCH L 53.6% C 0.209 H 338.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B42495
RGBrgb(180, 36, 149)
HSLhsl(313, 67%, 42%)
HSVhsv(313, 80%, 71%)
CMYKcmyk(0%, 80%, 17.2%, 29.4%)
CIE-LABlab(42.97, 65.66, -27.97)
CIE-LCHlch(42.97, 71.37, 336.93°)
OKLaboklab(53.63% 0.1953 -0.0759)
OKLCHoklch(53.63% 0.209 338.8)
XYZxyz(24.8787, 13.1375, 29.6535)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42495 #24B443
analogous
#8B24B4 #B42495 #B4244D
triadic
#B42495 #95B424 #2495B4
tetradic
#B42495 #B48B24 #24B443 #244DB4
square
#B42495 #B48B24 #24B443 #244DB4
split-complementary
#B42495 #4DB424 #24B48B
monochromatic
#4E1041 #811A6B #B42495 #D83DB7 #E270CA

Accessibility & contrast

On white

5.79
#B42495 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B42495 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42495
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42495#FFFFFF#000000##FFFFFF
##B424951.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5798
Deuteranopia (green-blind)
#5F6D92
Tritanopia (blue-blind)
#BF2C5B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42495;
/* rgb */ color: rgb(180, 36, 149);
/* oklch */ color: oklch(53.6% 0.209 338.8);
Tailwind
colors: {
  custom: {
    50: '#cf70b4',
    500: '#b42495',
    950: '#000000',
  },
}
SCSS
$custom: #b42495;
$custom-light: #cf70b4;
$custom-dark: #000000;
JSON
{
  "hex": "#b42495",
  "rgb": {
    "r": 180,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 312.917,
    "s": 66.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53625,
    "c": 0.20948,
    "h": 338.8
  },
  "luminance": 0.13135
}

Semantic roles & 50–950 ramp

primary
#B42495
secondary
#6BC97F
accent
#EA633E
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42495

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

Preview Lab → · Contrast checker → · Palette generator →

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