#B02898#B02898

#B02898 is a mid, highly saturated pink. Relative luminance 0.130; OKLCH L 53.4% C 0.206 H 336.5°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B02898
RGBrgb(176, 40, 152)
HSLhsl(311, 63%, 42%)
HSVhsv(311, 77%, 69%)
CMYKcmyk(0%, 77.3%, 13.6%, 31%)
CIE-LABlab(42.79, 64.08, -30.11)
CIE-LCHlch(42.79, 70.80, 334.83°)
OKLaboklab(53.41% 0.1885 -0.0821)
OKLCHoklch(53.41% 0.206 336.5)
XYZxyz(24.3312, 13.0170, 30.9308)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02898 #28B040
analogous
#8428B0 #B02898 #B02854
triadic
#B02898 #98B028 #2898B0
tetradic
#B02898 #B08428 #28B040 #2854B0
square
#B02898 #B08428 #28B040 #2854B0
split-complementary
#B02898 #54B028 #28B084
monochromatic
#4C1142 #7E1D6D #B02898 #D441BA #DF73CC

Accessibility & contrast

On white

5.83
#B02898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B02898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02898
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02898#FFFFFF#000000##FFFFFF
##B028981.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589B
Deuteranopia (green-blind)
#5C6C95
Tritanopia (blue-blind)
#B9325E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b02898;
/* rgb */ color: rgb(176, 40, 152);
/* oklch */ color: oklch(53.4% 0.206 336.5);
Tailwind
colors: {
  custom: {
    50: '#cc71b6',
    500: '#b02898',
    950: '#000000',
  },
}
SCSS
$custom: #b02898;
$custom-light: #cc71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b02898",
  "rgb": {
    "r": 176,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 310.588,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5341,
    "c": 0.20556,
    "h": 336.5
  },
  "luminance": 0.13015
}

Semantic roles & 50–950 ramp

primary
#B02898
secondary
#6DC67D
accent
#E65F42
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B02898

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

Preview Lab → · Contrast checker → · Palette generator →

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