#B22158#B22158

#B22158 is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.7% C 0.182 H 4.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#B22158
RGBrgb(178, 33, 88)
HSLhsl(337, 69%, 41%)
HSVhsv(337, 81%, 70%)
CMYKcmyk(0%, 81.5%, 50.6%, 30.2%)
CIE-LABlab(40.02, 59.22, 5.40)
CIE-LCHlch(40.02, 59.47, 5.21°)
OKLaboklab(50.66% 0.1814 0.0143)
OKLCHoklch(50.66% 0.182 4.5)
XYZxyz(20.6673, 11.2602, 10.3158)
Luminance0.1126 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22158 #21B27B
analogous
#B221A1 #B22158 #B23221
triadic
#B22158 #58B221 #2158B2
tetradic
#B22158 #A1B221 #21B27B #3221B2
square
#B22158 #A1B221 #21B27B #3221B2
split-complementary
#B22158 #21B232 #21A1B2
monochromatic
#4B0E25 #7E173E #B22158 #DA3674 #E36A98

Accessibility & contrast

On white

6.46
#B22158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#B22158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22158
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22158#FFFFFF#000000##FFFFFF
##B221581.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474C59
Deuteranopia (green-blind)
#6D6855
Tritanopia (blue-blind)
#C2003A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b22158;
/* rgb */ color: rgb(178, 33, 88);
/* oklch */ color: oklch(50.7% 0.182 4.5);
Tailwind
colors: {
  custom: {
    50: '#cf6d86',
    500: '#b22158',
    950: '#000000',
  },
}
SCSS
$custom: #b22158;
$custom-light: #cf6d86;
$custom-dark: #000000;
JSON
{
  "hex": "#b22158",
  "rgb": {
    "r": 178,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 337.241,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5066,
    "c": 0.18193,
    "h": 4.5
  },
  "luminance": 0.11257
}

Semantic roles & 50–950 ramp

primary
#B22158
secondary
#66C9A3
accent
#ECA93C
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B22158

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

Preview Lab → · Contrast checker → · Palette generator →

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