#B31BA3#B31BA3

#B31BA3 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.225 H 333.4°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B31BA3
RGBrgb(179, 27, 163)
HSLhsl(306, 74%, 40%)
HSVhsv(306, 85%, 70%)
CMYKcmyk(0%, 84.9%, 8.9%, 29.8%)
CIE-LABlab(42.78, 69.49, -36.70)
CIE-LCHlch(42.78, 78.59, 332.16°)
OKLaboklab(53.69% 0.2013 -0.1009)
OKLCHoklch(53.69% 0.225 333.4)
XYZxyz(25.5934, 13.0142, 35.8073)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BA3 #1BB32B
analogous
#771BB3 #B31BA3 #B31B57
triadic
#B31BA3 #A3B31B #1BA3B3
tetradic
#B31BA3 #B3771B #1BB32B #1B57B3
square
#B31BA3 #B3771B #1BB32B #1B57B3
split-complementary
#B31BA3 #57B31B #1BB377
monochromatic
#490B42 #7E1373 #B31BA3 #DF2CCC #E761D9

Accessibility & contrast

On white

5.83
#B31BA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B31BA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31BA3
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BA3#FFFFFF#000000##FFFFFF
##B31BA31.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1058A6
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#BB2F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ba3;
/* rgb */ color: rgb(179, 27, 163);
/* oklch */ color: oklch(53.7% 0.225 333.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ebf',
    500: '#b31ba3',
    950: '#000000',
  },
}
SCSS
$custom: #b31ba3;
$custom-light: #ce6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ba3",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 163
  },
  "hsl": {
    "h": 306.316,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5369,
    "c": 0.22515,
    "h": 333.4
  },
  "luminance": 0.13012
}

Semantic roles & 50–950 ramp

primary
#B31BA3
secondary
#5ECC6A
accent
#F04B37
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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