#B31A9F#B31A9F

#B31A9F is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.223 H 334.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#B31A9F
RGBrgb(179, 26, 159)
HSLhsl(308, 75%, 40%)
HSVhsv(308, 85%, 70%)
CMYKcmyk(0%, 85.5%, 11.2%, 29.8%)
CIE-LABlab(42.50, 69.12, -34.74)
CIE-LCHlch(42.50, 77.36, 333.31°)
OKLaboklab(53.42% 0.2018 -0.0953)
OKLCHoklch(53.42% 0.223 334.7)
XYZxyz(25.2182, 12.8281, 33.9421)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A9F #1AB32E
analogous
#7A1AB3 #B31A9F #B31A53
triadic
#B31A9F #9FB31A #1A9FB3
tetradic
#B31A9F #B37A1A #1AB32E #1A53B3
square
#B31A9F #B37A1A #1AB32E #1A53B3
split-complementary
#B31A9F #53B31A #1AB37A
monochromatic
#480A40 #7E1270 #B31A9F #E02AC8 #E860D6

Accessibility & contrast

On white

5.89
#B31A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B31A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A9F
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A9F#FFFFFF#000000##FFFFFF
##B31A9F1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1756A2
Deuteranopia (green-blind)
#576C9C
Tritanopia (blue-blind)
#BC2C5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31a9f;
/* rgb */ color: rgb(179, 26, 159);
/* oklch */ color: oklch(53.4% 0.223 334.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ebc',
    500: '#b31a9f',
    950: '#000000',
  },
}
SCSS
$custom: #b31a9f;
$custom-light: #ce6ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a9f",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 307.843,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53421,
    "c": 0.22316,
    "h": 334.7
  },
  "luminance": 0.12826
}

Semantic roles & 50–950 ramp

primary
#B31A9F
secondary
#5DCC6B
accent
#F14F37
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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