#B31FAB#B31FAB

#B31FAB is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.4% C 0.228 H 330.7°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B31FAB
RGBrgb(179, 31, 171)
HSLhsl(303, 70%, 41%)
HSVhsv(303, 83%, 70%)
CMYKcmyk(0%, 82.7%, 4.5%, 29.8%)
CIE-LABlab(43.52, 69.82, -40.31)
CIE-LCHlch(43.52, 80.62, 330.00°)
OKLaboklab(54.35% 0.1988 -0.1114)
OKLCHoklch(54.35% 0.228 330.7)
XYZxyz(26.4310, 13.5062, 39.7351)
Luminance0.1350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FAB #1FB327
analogous
#711FB3 #B31FAB #B31F61
triadic
#B31FAB #ABB31F #1FABB3
tetradic
#B31FAB #B3711F #1FB327 #1F61B3
square
#B31FAB #B3711F #1FB327 #1F61B3
split-complementary
#B31FAB #61B31F #1FB371
monochromatic
#4B0D47 #7F1679 #B31FAB #DC33D3 #E568DE

Accessibility & contrast

On white

5.67
#B31FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B31FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FAB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FAB#FFFFFF#000000##FFFFFF
##B31FAB1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#526EA8
Tritanopia (blue-blind)
#BA3667
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31fab;
/* rgb */ color: rgb(179, 31, 171);
/* oklch */ color: oklch(54.4% 0.228 330.7);
Tailwind
colors: {
  custom: {
    50: '#ce70c4',
    500: '#b31fab',
    950: '#000000',
  },
}
SCSS
$custom: #b31fab;
$custom-light: #ce70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fab",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 303.243,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54352,
    "c": 0.22784,
    "h": 330.7
  },
  "luminance": 0.13504
}

Semantic roles & 50–950 ramp

primary
#B31FAB
secondary
#64CA69
accent
#ED443B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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