#B31BAD#B31BAD

#B31BAD is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.3% C 0.232 H 330.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#B31BAD
RGBrgb(179, 27, 173)
HSLhsl(302, 74%, 40%)
HSVhsv(302, 85%, 70%)
CMYKcmyk(0%, 84.9%, 3.4%, 29.8%)
CIE-LABlab(43.34, 70.97, -41.78)
CIE-LCHlch(43.34, 82.35, 329.52°)
OKLaboklab(54.26% 0.2011 -0.1156)
OKLCHoklch(54.26% 0.232 330.1)
XYZxyz(26.5251, 13.3869, 40.7140)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31BAD #1BB321
analogous
#6D1BB3 #B31BAD #B31B61
triadic
#B31BAD #ADB31B #1BADB3
tetradic
#B31BAD #B36D1B #1BB321 #1B61B3
square
#B31BAD #B36D1B #1BB321 #1B61B3
split-complementary
#B31BAD #61B31B #1BB36D
monochromatic
#490B46 #7E137A #B31BAD #DF2CD8 #E761E2

Accessibility & contrast

On white

5.71
#B31BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B31BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31BAD
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31BAD#FFFFFF#000000##FFFFFF
##B31BAD1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#506DAA
Tritanopia (blue-blind)
#BA3667
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31bad;
/* rgb */ color: rgb(179, 27, 173);
/* oklch */ color: oklch(54.3% 0.232 330.1);
Tailwind
colors: {
  custom: {
    50: '#ce6fc6',
    500: '#b31bad',
    950: '#000000',
  },
}
SCSS
$custom: #b31bad;
$custom-light: #ce6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31bad",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 173
  },
  "hsl": {
    "h": 302.368,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54264,
    "c": 0.23198,
    "h": 330.1
  },
  "luminance": 0.13385
}

Semantic roles & 50–950 ramp

primary
#B31BAD
secondary
#5ECC62
accent
#F03F37
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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