#B31A98#B31A98

#B31A98 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 53.0% C 0.219 H 337.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#B31A98
RGBrgb(179, 26, 152)
HSLhsl(311, 75%, 40%)
HSVhsv(311, 85%, 70%)
CMYKcmyk(0%, 85.5%, 15.1%, 29.8%)
CIE-LABlab(42.14, 68.15, -31.09)
CIE-LCHlch(42.14, 74.91, 335.48°)
OKLaboklab(53.05% 0.2015 -0.0848)
OKLCHoklch(53.05% 0.219 337.2)
XYZxyz(24.6279, 12.5919, 30.8331)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A98 #1AB335
analogous
#811AB3 #B31A98 #B31A4C
triadic
#B31A98 #98B31A #1A98B3
tetradic
#B31A98 #B3811A #1AB335 #1A4CB3
square
#B31A98 #B3811A #1AB335 #1A4CB3
split-complementary
#B31A98 #4CB31A #1AB381
monochromatic
#480A3D #7E126B #B31A98 #E02AC0 #E860D0

Accessibility & contrast

On white

5.97
#B31A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B31A98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A98
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A98#FFFFFF#000000##FFFFFF
##B31A981.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#BD275B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31a98;
/* rgb */ color: rgb(179, 26, 152);
/* oklch */ color: oklch(53.0% 0.219 337.2);
Tailwind
colors: {
  custom: {
    50: '#ce6db6',
    500: '#b31a98',
    950: '#000000',
  },
}
SCSS
$custom: #b31a98;
$custom-light: #ce6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a98",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 310.588,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53046,
    "c": 0.21861,
    "h": 337.2
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

primary
#B31A98
secondary
#5DCC70
accent
#F15737
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31A98

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

Preview Lab → · Contrast checker → · Palette generator →

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