#B22796#B22796

#B22796 is a mid, highly saturated pink. Relative luminance 0.131; OKLCH L 53.6% C 0.206 H 337.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B22796
RGBrgb(178, 39, 150)
HSLhsl(312, 64%, 43%)
HSVhsv(312, 78%, 70%)
CMYKcmyk(0%, 78.1%, 15.7%, 30.2%)
CIE-LABlab(42.94, 64.53, -28.64)
CIE-LCHlch(42.94, 70.60, 336.07°)
OKLaboklab(53.56% 0.191 -0.0778)
OKLCHoklch(53.56% 0.206 337.8)
XYZxyz(24.5912, 13.1204, 30.0856)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22796 #27B243
analogous
#8827B2 #B22796 #B22751
triadic
#B22796 #96B227 #2796B2
tetradic
#B22796 #B28827 #27B243 #2751B2
square
#B22796 #B28827 #27B243 #2751B2
split-complementary
#B22796 #51B227 #27B288
monochromatic
#4E1141 #801C6C #B22796 #D541B7 #E073CA

Accessibility & contrast

On white

5.80
#B22796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B22796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22796
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22796#FFFFFF#000000##FFFFFF
##B227961.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5899
Deuteranopia (green-blind)
#5E6D93
Tritanopia (blue-blind)
#BC305D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b22796;
/* rgb */ color: rgb(178, 39, 150);
/* oklch */ color: oklch(53.6% 0.206 337.8);
Tailwind
colors: {
  custom: {
    50: '#cd71b5',
    500: '#b22796',
    950: '#000000',
  },
}
SCSS
$custom: #b22796;
$custom-light: #cd71b5;
$custom-dark: #000000;
JSON
{
  "hex": "#b22796",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 312.086,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53556,
    "c": 0.20629,
    "h": 337.8
  },
  "luminance": 0.13118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B22796

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

Preview Lab → · Contrast checker → · Palette generator →

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