#B02798#B02798

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

Color values

HEX#B02798
RGBrgb(176, 39, 152)
HSLhsl(311, 64%, 42%)
HSVhsv(311, 78%, 69%)
CMYKcmyk(0%, 77.8%, 13.6%, 31%)
CIE-LABlab(42.69, 64.36, -30.27)
CIE-LCHlch(42.69, 71.13, 334.81°)
OKLaboklab(53.34% 0.1893 -0.0825)
OKLCHoklch(53.34% 0.207 336.4)
XYZxyz(24.2979, 12.9504, 30.9197)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02798 #27B03F
analogous
#8427B0 #B02798 #B02754
triadic
#B02798 #98B027 #2798B0
tetradic
#B02798 #B08427 #27B03F #2754B0
square
#B02798 #B08427 #27B03F #2754B0
split-complementary
#B02798 #54B027 #27B084
monochromatic
#4C1141 #7E1C6D #B02798 #D540BA #E072CC

Accessibility & contrast

On white

5.85
#B02798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B02798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02798
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02798#FFFFFF#000000##FFFFFF
##B027981.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#5B6C95
Tritanopia (blue-blind)
#B9315E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b02798;
/* rgb */ color: rgb(176, 39, 152);
/* oklch */ color: oklch(53.3% 0.207 336.4);
Tailwind
colors: {
  custom: {
    50: '#cc71b6',
    500: '#b02798',
    950: '#000000',
  },
}
SCSS
$custom: #b02798;
$custom-light: #cc71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b02798",
  "rgb": {
    "r": 176,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 310.511,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53338,
    "c": 0.20652,
    "h": 336.4
  },
  "luminance": 0.12948
}

Semantic roles & 50–950 ramp

primary
#B02798
secondary
#6CC77C
accent
#E75E41
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B02798

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

Preview Lab → · Contrast checker → · Palette generator →

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