#B31C98#B31C98

#B31C98 is a mid, highly saturated pink. Relative luminance 0.127; OKLCH L 53.1% C 0.217 H 337.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B31C98
RGBrgb(179, 28, 152)
HSLhsl(311, 73%, 41%)
HSVhsv(311, 84%, 70%)
CMYKcmyk(0%, 84.4%, 15.1%, 29.8%)
CIE-LABlab(42.28, 67.74, -30.87)
CIE-LCHlch(42.28, 74.44, 335.50°)
OKLaboklab(53.15% 0.2003 -0.0841)
OKLCHoklch(53.15% 0.217 337.2)
XYZxyz(24.6737, 12.6837, 30.8484)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31C98 #1CB337
analogous
#821CB3 #B31C98 #B31C4D
triadic
#B31C98 #98B31C #1C98B3
tetradic
#B31C98 #B3821C #1CB337 #1C4DB3
square
#B31C98 #B3821C #1CB337 #1C4DB3
split-complementary
#B31C98 #4DB31C #1CB382
monochromatic
#490B3E #7E146B #B31C98 #DE2EBF #E763CF

Accessibility & contrast

On white

5.94
#B31C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#B31C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31C98
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31C98#FFFFFF#000000##FFFFFF
##B31C981.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559B
Deuteranopia (green-blind)
#5B6C95
Tritanopia (blue-blind)
#BD295B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31c98;
/* rgb */ color: rgb(179, 28, 152);
/* oklch */ color: oklch(53.1% 0.217 337.2);
Tailwind
colors: {
  custom: {
    50: '#ce6eb6',
    500: '#b31c98',
    950: '#000000',
  },
}
SCSS
$custom: #b31c98;
$custom-light: #ce6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31c98",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 310.728,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53147,
    "c": 0.21724,
    "h": 337.2
  },
  "luminance": 0.12681
}

Semantic roles & 50–950 ramp

primary
#B31C98
secondary
#5FCB73
accent
#F05938
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31C98

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

Preview Lab → · Contrast checker → · Palette generator →

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