#B22897#B22897

#B22897 is a mid, highly saturated pink. Relative luminance 0.132; OKLCH L 53.7% C 0.206 H 337.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B22897
RGBrgb(178, 40, 151)
HSLhsl(312, 63%, 43%)
HSVhsv(312, 78%, 70%)
CMYKcmyk(0%, 77.5%, 15.2%, 30.2%)
CIE-LABlab(43.09, 64.39, -29.01)
CIE-LCHlch(43.09, 70.62, 335.75°)
OKLaboklab(53.68% 0.1903 -0.0789)
OKLCHoklch(53.68% 0.206 337.5)
XYZxyz(24.7053, 13.2193, 30.5226)
Luminance0.1322 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22897 #28B243
analogous
#8828B2 #B22897 #B22852
triadic
#B22897 #97B228 #2897B2
tetradic
#B22897 #B28828 #28B243 #2852B2
square
#B22897 #B28828 #28B243 #2852B2
split-complementary
#B22897 #52B228 #28B288
monochromatic
#4E1242 #801D6D #B22897 #D543B8 #E075CB

Accessibility & contrast

On white

5.76
#B22897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B22897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22897
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22897#FFFFFF#000000##FFFFFF
##B228971.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589A
Deuteranopia (green-blind)
#5E6D94
Tritanopia (blue-blind)
#BC315E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b22897;
/* rgb */ color: rgb(178, 40, 151);
/* oklch */ color: oklch(53.7% 0.206 337.5);
Tailwind
colors: {
  custom: {
    50: '#cd72b6',
    500: '#b22897',
    950: '#000000',
  },
}
SCSS
$custom: #b22897;
$custom-light: #cd72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b22897",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 311.739,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53678,
    "c": 0.20599,
    "h": 337.5
  },
  "luminance": 0.13217
}

Semantic roles & 50–950 ramp

primary
#B22897
secondary
#6FC780
accent
#E66241
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22897

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

Preview Lab → · Contrast checker → · Palette generator →

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