#B31D9E#B31D9E

#B31D9E is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.220 H 335.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B31D9E
RGBrgb(179, 29, 158)
HSLhsl(308, 72%, 41%)
HSVhsv(308, 84%, 70%)
CMYKcmyk(0%, 83.8%, 11.7%, 29.8%)
CIE-LABlab(42.66, 68.36, -33.89)
CIE-LCHlch(42.66, 76.30, 333.63°)
OKLaboklab(53.52% 0.2 -0.0928)
OKLCHoklch(53.52% 0.22 335.1)
XYZxyz(25.2017, 12.9334, 33.5103)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31D9E #1DB332
analogous
#7D1DB3 #B31D9E #B31D53
triadic
#B31D9E #9EB31D #1D9EB3
tetradic
#B31D9E #B37D1D #1DB332 #1D53B3
square
#B31D9E #B37D1D #1DB332 #1D53B3
split-complementary
#B31D9E #53B31D #1DB37D
monochromatic
#4A0C41 #7E1470 #B31D9E #DD30C5 #E664D4

Accessibility & contrast

On white

5.86
#B31D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B31D9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31D9E
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31D9E#FFFFFF#000000##FFFFFF
##B31D9E1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C57A1
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#BC2D5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31d9e;
/* rgb */ color: rgb(179, 29, 158);
/* oklch */ color: oklch(53.5% 0.220 335.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ebb',
    500: '#b31d9e',
    950: '#000000',
  },
}
SCSS
$custom: #b31d9e;
$custom-light: #ce6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#b31d9e",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 308.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53518,
    "c": 0.22044,
    "h": 335.1
  },
  "luminance": 0.12931
}

Semantic roles & 50–950 ramp

primary
#B31D9E
secondary
#61CB70
accent
#EF5239
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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