#B31CAF#B31CAF

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

Color values

HEX#B31CAF
RGBrgb(179, 28, 175)
HSLhsl(302, 73%, 41%)
HSVhsv(302, 84%, 70%)
CMYKcmyk(0%, 84.4%, 2.2%, 29.8%)
CIE-LABlab(43.52, 71.07, -42.67)
CIE-LCHlch(43.52, 82.90, 329.02°)
OKLaboklab(54.43% 0.2005 -0.1182)
OKLCHoklch(54.43% 0.233 329.5)
XYZxyz(26.7434, 13.5115, 41.7486)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CAF #1CB320
analogous
#6B1CB3 #B31CAF #B31C64
triadic
#B31CAF #AFB31C #1CAFB3
tetradic
#B31CAF #B36B1C #1CB320 #1C64B3
square
#B31CAF #B36B1C #1CB320 #1C64B3
split-complementary
#B31CAF #64B31C #1CB36B
monochromatic
#490B48 #7E147B #B31CAF #DE2EDA #E763E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31CAF#FFFFFF#000000##FFFFFF
##B31CAF1.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)
#005AB3
Deuteranopia (green-blind)
#4F6DAC
Tritanopia (blue-blind)
#BA3769
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31caf;
/* rgb */ color: rgb(179, 28, 175);
/* oklch */ color: oklch(54.4% 0.233 329.5);
Tailwind
colors: {
  custom: {
    50: '#ce6fc7',
    500: '#b31caf',
    950: '#000000',
  },
}
SCSS
$custom: #b31caf;
$custom-light: #ce6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31caf",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 175
  },
  "hsl": {
    "h": 301.589,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54431,
    "c": 0.23272,
    "h": 329.5
  },
  "luminance": 0.13509
}

Semantic roles & 50–950 ramp

primary
#B31CAF
secondary
#5FCB62
accent
#F03D38
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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