#B31A9B#B31A9B

#B31A9B is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.2% C 0.221 H 336.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B31A9B
RGBrgb(179, 26, 155)
HSLhsl(309, 75%, 40%)
HSVhsv(309, 85%, 70%)
CMYKcmyk(0%, 85.5%, 13.4%, 29.8%)
CIE-LABlab(42.29, 68.56, -32.66)
CIE-LCHlch(42.29, 75.94, 334.53°)
OKLaboklab(53.21% 0.2017 -0.0893)
OKLCHoklch(53.21% 0.221 336.1)
XYZxyz(24.8767, 12.6915, 32.1436)
Luminance0.1269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A9B #1AB332
analogous
#7F1AB3 #B31A9B #B31A4E
triadic
#B31A9B #9BB31A #1A9BB3
tetradic
#B31A9B #B37F1A #1AB332 #1A4EB3
square
#B31A9B #B37F1A #1AB332 #1A4EB3
split-complementary
#B31A9B #4EB31A #1AB37F
monochromatic
#480A3E #7E126D #B31A9B #E02AC4 #E860D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31A9B#FFFFFF#000000##FFFFFF
##B31A9B1.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)
#1D569E
Deuteranopia (green-blind)
#596C98
Tritanopia (blue-blind)
#BD295D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31a9b;
/* rgb */ color: rgb(179, 26, 155);
/* oklch */ color: oklch(53.2% 0.221 336.1);
Tailwind
colors: {
  custom: {
    50: '#ce6eb9',
    500: '#b31a9b',
    950: '#000000',
  },
}
SCSS
$custom: #b31a9b;
$custom-light: #ce6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a9b",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 309.412,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53205,
    "c": 0.22054,
    "h": 336.1
  },
  "luminance": 0.12689
}

Semantic roles & 50–950 ramp

primary
#B31A9B
secondary
#5DCC6E
accent
#F15437
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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