#B31CAC#B31CAC

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

Color values

HEX#B31CAC
RGBrgb(179, 28, 172)
HSLhsl(303, 73%, 41%)
HSVhsv(303, 84%, 70%)
CMYKcmyk(0%, 84.4%, 3.9%, 29.8%)
CIE-LABlab(43.35, 70.62, -41.16)
CIE-LCHlch(43.35, 81.74, 329.76°)
OKLaboklab(54.25% 0.2006 -0.1138)
OKLCHoklch(54.25% 0.231 330.4)
XYZxyz(26.4520, 13.3950, 40.2140)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CAC #1CB323
analogous
#6E1CB3 #B31CAC #B31C61
triadic
#B31CAC #ACB31C #1CACB3
tetradic
#B31CAC #B36E1C #1CB323 #1C61B3
square
#B31CAC #B36E1C #1CB323 #1C61B3
split-complementary
#B31CAC #61B31C #1CB36E
monochromatic
#490B46 #7E1479 #B31CAC #DE2ED6 #E763E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31CAC#FFFFFF#000000##FFFFFF
##B31CAC1.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)
#005AB0
Deuteranopia (green-blind)
#516DA9
Tritanopia (blue-blind)
#BA3667
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31cac;
/* rgb */ color: rgb(179, 28, 172);
/* oklch */ color: oklch(54.3% 0.231 330.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fc5',
    500: '#b31cac',
    950: '#000000',
  },
}
SCSS
$custom: #b31cac;
$custom-light: #ce6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#b31cac",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 172
  },
  "hsl": {
    "h": 302.781,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54254,
    "c": 0.23063,
    "h": 330.4
  },
  "luminance": 0.13393
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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