#B31CA9#B31CA9

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

Color values

HEX#B31CA9
RGBrgb(179, 28, 169)
HSLhsl(304, 73%, 41%)
HSVhsv(304, 84%, 70%)
CMYKcmyk(0%, 84.4%, 5.6%, 29.8%)
CIE-LABlab(43.18, 70.17, -39.65)
CIE-LCHlch(43.18, 80.59, 330.53°)
OKLaboklab(54.08% 0.2007 -0.1094)
OKLCHoklch(54.08% 0.229 331.4)
XYZxyz(26.1671, 13.2810, 38.7138)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA9 #1CB326
analogous
#721CB3 #B31CA9 #B31C5D
triadic
#B31CA9 #A9B31C #1CA9B3
tetradic
#B31CA9 #B3721C #1CB326 #1C5DB3
square
#B31CA9 #B3721C #1CB326 #1C5DB3
split-complementary
#B31CA9 #5DB31C #1CB372
monochromatic
#490B45 #7E1477 #B31CA9 #DE2ED3 #E763DE

Accessibility & contrast

On white

5.74
#B31CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B31CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA9
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA9#FFFFFF#000000##FFFFFF
##B31CA91.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AC
Deuteranopia (green-blind)
#526DA6
Tritanopia (blue-blind)
#BB3465
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ca9;
/* rgb */ color: rgb(179, 28, 169);
/* oklch */ color: oklch(54.1% 0.229 331.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fc3',
    500: '#b31ca9',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca9;
$custom-light: #ce6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca9",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 303.974,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5408,
    "c": 0.22856,
    "h": 331.4
  },
  "luminance": 0.13279
}

Semantic roles & 50–950 ramp

primary
#B31CA9
secondary
#5FCB67
accent
#F04438
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B31CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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