#B31A9A#B31A9A

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

Color values

HEX#B31A9A
RGBrgb(179, 26, 154)
HSLhsl(310, 75%, 40%)
HSVhsv(310, 85%, 70%)
CMYKcmyk(0%, 85.5%, 14%, 29.8%)
CIE-LABlab(42.24, 68.42, -32.14)
CIE-LCHlch(42.24, 75.60, 334.84°)
OKLaboklab(53.15% 0.2016 -0.0878)
OKLCHoklch(53.15% 0.22 336.5)
XYZxyz(24.7930, 12.6580, 31.7031)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A9A #1AB333
analogous
#7F1AB3 #B31A9A #B31A4D
triadic
#B31A9A #9AB31A #1A9AB3
tetradic
#B31A9A #B37F1A #1AB333 #1A4DB3
square
#B31A9A #B37F1A #1AB333 #1A4DB3
split-complementary
#B31A9A #4DB31A #1AB37F
monochromatic
#480A3E #7E126C #B31A9A #E02AC2 #E860D2

Accessibility & contrast

On white

5.95
#B31A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#B31A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A9A
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A9A#FFFFFF#000000##FFFFFF
##B31A9A1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E559D
Deuteranopia (green-blind)
#596C97
Tritanopia (blue-blind)
#BD295C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31a9a;
/* rgb */ color: rgb(179, 26, 154);
/* oklch */ color: oklch(53.2% 0.220 336.5);
Tailwind
colors: {
  custom: {
    50: '#ce6eb8',
    500: '#b31a9a',
    950: '#000000',
  },
}
SCSS
$custom: #b31a9a;
$custom-light: #ce6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a9a",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 309.804,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53152,
    "c": 0.2199,
    "h": 336.5
  },
  "luminance": 0.12656
}

Semantic roles & 50–950 ramp

primary
#B31A9A
secondary
#5DCC6F
accent
#F15537
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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