#B02897#B02897

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

Color values

HEX#B02897
RGBrgb(176, 40, 151)
HSLhsl(311, 63%, 42%)
HSVhsv(311, 77%, 69%)
CMYKcmyk(0%, 77.3%, 14.2%, 31%)
CIE-LABlab(42.74, 63.93, -29.59)
CIE-LCHlch(42.74, 70.45, 335.17°)
OKLaboklab(53.36% 0.1884 -0.0806)
OKLCHoklch(53.36% 0.205 336.8)
XYZxyz(24.2497, 12.9843, 30.5013)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02897 #28B041
analogous
#8528B0 #B02897 #B02853
triadic
#B02897 #97B028 #2897B0
tetradic
#B02897 #B08528 #28B041 #2853B0
square
#B02897 #B08528 #28B041 #2853B0
split-complementary
#B02897 #53B028 #28B085
monochromatic
#4C1141 #7E1D6C #B02897 #D441B9 #DF73CB

Accessibility & contrast

On white

5.84
#B02897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B02897
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02897#FFFFFF#000000##FFFFFF
##B028971.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b02897;
/* rgb */ color: rgb(176, 40, 151);
/* oklch */ color: oklch(53.4% 0.205 336.8);
Tailwind
colors: {
  custom: {
    50: '#cc71b6',
    500: '#b02897',
    950: '#000000',
  },
}
SCSS
$custom: #b02897;
$custom-light: #cc71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b02897",
  "rgb": {
    "r": 176,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 311.029,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53359,
    "c": 0.20488,
    "h": 336.8
  },
  "luminance": 0.12982
}

Semantic roles & 50–950 ramp

primary
#B02897
secondary
#6DC67E
accent
#E66042
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B02897

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

Preview Lab → · Contrast checker → · Palette generator →

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