#B31BA9#B31BA9

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

Color values

HEX#B31BA9
RGBrgb(179, 27, 169)
HSLhsl(304, 74%, 40%)
HSVhsv(304, 85%, 70%)
CMYKcmyk(0%, 84.9%, 5.6%, 29.8%)
CIE-LABlab(43.11, 70.37, -39.76)
CIE-LCHlch(43.11, 80.82, 330.53°)
OKLaboklab(54.03% 0.2012 -0.1098)
OKLCHoklch(54.03% 0.229 331.4)
XYZxyz(26.1438, 13.2344, 38.7060)
Luminance0.1323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BA9 #1BB325
analogous
#711BB3 #B31BA9 #B31B5D
triadic
#B31BA9 #A9B31B #1BA9B3
tetradic
#B31BA9 #B3711B #1BB325 #1B5DB3
square
#B31BA9 #B3711B #1BB325 #1B5DB3
split-complementary
#B31BA9 #5DB31B #1BB371
monochromatic
#490B45 #7E1377 #B31BA9 #DF2CD3 #E761DE

Accessibility & contrast

On white

5.76
#B31BA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B31BA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31BA9
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BA9#FFFFFF#000000##FFFFFF
##B31BA91.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.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: #b31ba9;
/* rgb */ color: rgb(179, 27, 169);
/* oklch */ color: oklch(54.0% 0.229 331.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ec3',
    500: '#b31ba9',
    950: '#000000',
  },
}
SCSS
$custom: #b31ba9;
$custom-light: #ce6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ba9",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 169
  },
  "hsl": {
    "h": 303.947,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54031,
    "c": 0.22923,
    "h": 331.4
  },
  "luminance": 0.13232
}

Semantic roles & 50–950 ramp

primary
#B31BA9
secondary
#5ECC65
accent
#F04437
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B31BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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