#B02797#B02797

#B02797 is a mid, highly saturated pink. Relative luminance 0.129; OKLCH L 53.3% C 0.206 H 336.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B02797
RGBrgb(176, 39, 151)
HSLhsl(311, 64%, 42%)
HSVhsv(311, 78%, 69%)
CMYKcmyk(0%, 77.8%, 14.2%, 31%)
CIE-LABlab(42.64, 64.22, -29.74)
CIE-LCHlch(42.64, 70.78, 335.15°)
OKLaboklab(53.29% 0.1892 -0.081)
OKLCHoklch(53.29% 0.206 336.8)
XYZxyz(24.2164, 12.9178, 30.4902)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02797 #27B040
analogous
#8527B0 #B02797 #B02753
triadic
#B02797 #97B027 #2797B0
tetradic
#B02797 #B08527 #27B040 #2753B0
square
#B02797 #B08527 #27B040 #2753B0
split-complementary
#B02797 #53B027 #27B085
monochromatic
#4C1141 #7E1C6C #B02797 #D540B9 #E072CC

Accessibility & contrast

On white

5.86
#B02797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B02797
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02797#FFFFFF#000000##FFFFFF
##B027971.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#5C6C94
Tritanopia (blue-blind)
#BA315D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b02797;
/* rgb */ color: rgb(176, 39, 151);
/* oklch */ color: oklch(53.3% 0.206 336.8);
Tailwind
colors: {
  custom: {
    50: '#cc71b6',
    500: '#b02797',
    950: '#000000',
  },
}
SCSS
$custom: #b02797;
$custom-light: #cc71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b02797",
  "rgb": {
    "r": 176,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 310.949,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53287,
    "c": 0.20584,
    "h": 336.8
  },
  "luminance": 0.12916
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B02797

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

Preview Lab → · Contrast checker → · Palette generator →

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