#B31BAA#B31BAA

#B31BAA is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.230 H 331.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B31BAA
RGBrgb(179, 27, 170)
HSLhsl(304, 74%, 40%)
HSVhsv(304, 85%, 70%)
CMYKcmyk(0%, 84.9%, 5%, 29.8%)
CIE-LABlab(43.17, 70.52, -40.26)
CIE-LCHlch(43.17, 81.20, 330.28°)
OKLaboklab(54.09% 0.2012 -0.1112)
OKLCHoklch(54.09% 0.23 331.1)
XYZxyz(26.2380, 13.2721, 39.2023)
Luminance0.1327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BAA #1BB324
analogous
#701BB3 #B31BAA #B31B5E
triadic
#B31BAA #AAB31B #1BAAB3
tetradic
#B31BAA #B3701B #1BB324 #1B5EB3
square
#B31BAA #B3701B #1BB324 #1B5EB3
split-complementary
#B31BAA #5EB31B #1BB370
monochromatic
#490B45 #7E1377 #B31BAA #DF2CD5 #E761DF

Accessibility & contrast

On white

5.75
#B31BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31BAA
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BAA#FFFFFF#000000##FFFFFF
##B31BAA1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#526DA7
Tritanopia (blue-blind)
#BA3466
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31baa;
/* rgb */ color: rgb(179, 27, 170);
/* oklch */ color: oklch(54.1% 0.230 331.1);
Tailwind
colors: {
  custom: {
    50: '#ce6fc4',
    500: '#b31baa',
    950: '#000000',
  },
}
SCSS
$custom: #b31baa;
$custom-light: #ce6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31baa",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 303.553,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54089,
    "c": 0.22991,
    "h": 331.1
  },
  "luminance": 0.1327
}

Semantic roles & 50–950 ramp

primary
#B31BAA
secondary
#5ECC65
accent
#F04237
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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