#B31AA9#B31AA9

#B31AA9 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.230 H 331.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#B31AA9
RGBrgb(179, 26, 169)
HSLhsl(304, 75%, 40%)
HSVhsv(304, 85%, 70%)
CMYKcmyk(0%, 85.5%, 5.6%, 29.8%)
CIE-LABlab(43.05, 70.57, -39.86)
CIE-LCHlch(43.05, 81.05, 330.54°)
OKLaboklab(53.98% 0.2018 -0.1101)
OKLCHoklch(53.98% 0.23 331.4)
XYZxyz(26.1213, 13.1893, 38.6985)
Luminance0.1319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA9 #1AB324
analogous
#711AB3 #B31AA9 #B31A5C
triadic
#B31AA9 #A9B31A #1AA9B3
tetradic
#B31AA9 #B3711A #1AB324 #1A5CB3
square
#B31AA9 #B3711A #1AB324 #1A5CB3
split-complementary
#B31AA9 #5CB31A #1AB371
monochromatic
#480A44 #7E1277 #B31AA9 #E02AD4 #E860DF

Accessibility & contrast

On white

5.77
#B31AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B31AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA9
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA9#FFFFFF#000000##FFFFFF
##B31AA91.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AC
Deuteranopia (green-blind)
#526DA6
Tritanopia (blue-blind)
#BB3365
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31aa9;
/* rgb */ color: rgb(179, 26, 169);
/* oklch */ color: oklch(54.0% 0.230 331.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ec3',
    500: '#b31aa9',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa9;
$custom-light: #ce6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa9",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 169
  },
  "hsl": {
    "h": 303.922,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53983,
    "c": 0.22988,
    "h": 331.4
  },
  "luminance": 0.13187
}

Semantic roles & 50–950 ramp

primary
#B31AA9
secondary
#5DCC64
accent
#F14337
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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