#B22F98#B22F98

#B22F98 is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.3% C 0.199 H 337.3°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#B22F98
RGBrgb(178, 47, 152)
HSLhsl(312, 58%, 44%)
HSVhsv(312, 74%, 70%)
CMYKcmyk(0%, 73.6%, 14.6%, 30.2%)
CIE-LABlab(43.90, 62.37, -28.35)
CIE-LCHlch(43.90, 68.51, 335.55°)
OKLaboklab(54.28% 0.1839 -0.0771)
OKLCHoklch(54.28% 0.199 337.3)
XYZxyz(25.0446, 13.7673, 31.0380)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22F98 #2FB249
analogous
#8B2FB2 #B22F98 #B22F57
triadic
#B22F98 #98B22F #2F98B2
tetradic
#B22F98 #B28B2F #2FB249 #2F57B2
square
#B22F98 #B28B2F #2FB249 #2F57B2
split-complementary
#B22F98 #57B22F #2FB28B
monochromatic
#511545 #82226F #B22F98 #D04EB6 #DD7ECA

Accessibility & contrast

On white

5.60
#B22F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#B22F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22F98
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22F98#FFFFFF#000000##FFFFFF
##B22F981.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335B9B
Deuteranopia (green-blind)
#606F95
Tritanopia (blue-blind)
#BC3760
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b22f98;
/* rgb */ color: rgb(178, 47, 152);
/* oklch */ color: oklch(54.3% 0.199 337.3);
Tailwind
colors: {
  custom: {
    50: '#cd74b6',
    500: '#b22f98',
    950: '#000000',
  },
}
SCSS
$custom: #b22f98;
$custom-light: #cd74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b22f98",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 311.908,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54275,
    "c": 0.1994,
    "h": 337.3
  },
  "luminance": 0.13765
}

Semantic roles & 50–950 ramp

primary
#B22F98
secondary
#77C687
accent
#E16546
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22F98

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

Preview Lab → · Contrast checker → · Palette generator →

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