#B22797#B22797

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

Color values

HEX#B22797
RGBrgb(178, 39, 151)
HSLhsl(312, 64%, 43%)
HSVhsv(312, 78%, 70%)
CMYKcmyk(0%, 78.1%, 15.2%, 30.2%)
CIE-LABlab(42.99, 64.67, -29.17)
CIE-LCHlch(42.99, 70.95, 335.73°)
OKLaboklab(53.61% 0.1911 -0.0793)
OKLCHoklch(53.61% 0.207 337.5)
XYZxyz(24.6721, 13.1528, 30.5115)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22797 #27B242
analogous
#8827B2 #B22797 #B22751
triadic
#B22797 #97B227 #2797B2
tetradic
#B22797 #B28827 #27B242 #2751B2
square
#B22797 #B28827 #27B242 #2751B2
split-complementary
#B22797 #51B227 #27B288
monochromatic
#4E1142 #801C6C #B22797 #D541B8 #E073CB

Accessibility & contrast

On white

5.79
#B22797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B22797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22797
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22797#FFFFFF#000000##FFFFFF
##B227971.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b22797;
/* rgb */ color: rgb(178, 39, 151);
/* oklch */ color: oklch(53.6% 0.207 337.5);
Tailwind
colors: {
  custom: {
    50: '#cd71b6',
    500: '#b22797',
    950: '#000000',
  },
}
SCSS
$custom: #b22797;
$custom-light: #cd71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b22797",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 311.655,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53607,
    "c": 0.20694,
    "h": 337.5
  },
  "luminance": 0.1315
}

Semantic roles & 50–950 ramp

primary
#B22797
secondary
#6DC87F
accent
#E76141
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22797

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

Preview Lab → · Contrast checker → · Palette generator →

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