#B31CAD#B31CAD

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

Color values

HEX#B31CAD
RGBrgb(179, 28, 173)
HSLhsl(302, 73%, 41%)
HSVhsv(302, 84%, 70%)
CMYKcmyk(0%, 84.4%, 3.4%, 29.8%)
CIE-LABlab(43.41, 70.77, -41.67)
CIE-LCHlch(43.41, 82.12, 329.51°)
OKLaboklab(54.31% 0.2005 -0.1153)
OKLCHoklch(54.31% 0.231 330.1)
XYZxyz(26.5484, 13.4335, 40.7217)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CAD #1CB322
analogous
#6D1CB3 #B31CAD #B31C61
triadic
#B31CAD #ADB31C #1CADB3
tetradic
#B31CAD #B36D1C #1CB322 #1C61B3
square
#B31CAD #B36D1C #1CB322 #1C61B3
split-complementary
#B31CAD #61B31C #1CB36D
monochromatic
#490B47 #7E147A #B31CAD #DE2ED7 #E763E1

Accessibility & contrast

On white

5.70
#B31CAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B31CAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CAD
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CAD#FFFFFF#000000##FFFFFF
##B31CAD1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31cad;
/* rgb */ color: rgb(179, 28, 173);
/* oklch */ color: oklch(54.3% 0.231 330.1);
Tailwind
colors: {
  custom: {
    50: '#ce6fc6',
    500: '#b31cad',
    950: '#000000',
  },
}
SCSS
$custom: #b31cad;
$custom-light: #ce6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31cad",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 173
  },
  "hsl": {
    "h": 302.384,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.23133,
    "h": 330.1
  },
  "luminance": 0.13431
}

Semantic roles & 50–950 ramp

primary
#B31CAD
secondary
#5FCB64
accent
#F03F38
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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