#B02796#B02796

#B02796 is a mid, highly saturated pink. Relative luminance 0.129; OKLCH L 53.2% C 0.205 H 337.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B02796
RGBrgb(176, 39, 150)
HSLhsl(311, 64%, 42%)
HSVhsv(311, 78%, 69%)
CMYKcmyk(0%, 77.8%, 14.8%, 31%)
CIE-LABlab(42.59, 64.08, -29.22)
CIE-LCHlch(42.59, 70.43, 335.49°)
OKLaboklab(53.24% 0.1891 -0.0795)
OKLCHoklch(53.24% 0.205 337.2)
XYZxyz(24.1355, 12.8855, 30.0643)
Luminance0.1288 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02796 #27B041
analogous
#8627B0 #B02796 #B02751
triadic
#B02796 #96B027 #2796B0
tetradic
#B02796 #B08627 #27B041 #2751B0
square
#B02796 #B08627 #27B041 #2751B0
split-complementary
#B02796 #51B027 #27B086
monochromatic
#4C1141 #7E1C6B #B02796 #D540B8 #E072CB

Accessibility & contrast

On white

5.87
#B02796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B02796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02796
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02796#FFFFFF#000000##FFFFFF
##B027961.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5799
Deuteranopia (green-blind)
#5C6C93
Tritanopia (blue-blind)
#BA305D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b02796;
/* rgb */ color: rgb(176, 39, 150);
/* oklch */ color: oklch(53.2% 0.205 337.2);
Tailwind
colors: {
  custom: {
    50: '#cc71b5',
    500: '#b02796',
    950: '#000000',
  },
}
SCSS
$custom: #b02796;
$custom-light: #cc71b5;
$custom-dark: #000000;
JSON
{
  "hex": "#b02796",
  "rgb": {
    "r": 176,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 311.387,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53235,
    "c": 0.20517,
    "h": 337.2
  },
  "luminance": 0.12883
}

Semantic roles & 50–950 ramp

primary
#B02796
secondary
#6CC77D
accent
#E76141
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B02796

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

Preview Lab → · Contrast checker → · Palette generator →

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