#B31F9F#B31F9F

#B31F9F is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.220 H 334.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B31F9F
RGBrgb(179, 31, 159)
HSLhsl(308, 70%, 41%)
HSVhsv(308, 83%, 70%)
CMYKcmyk(0%, 82.7%, 11.2%, 29.8%)
CIE-LABlab(42.87, 68.06, -34.17)
CIE-LCHlch(42.87, 76.16, 333.34°)
OKLaboklab(53.68% 0.1987 -0.0936)
OKLCHoklch(53.68% 0.22 334.8)
XYZxyz(25.3387, 13.0692, 33.9823)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F9F #1FB333
analogous
#7D1FB3 #B31F9F #B31F55
triadic
#B31F9F #9FB31F #1F9FB3
tetradic
#B31F9F #B37D1F #1FB333 #1F55B3
square
#B31F9F #B37D1F #1FB333 #1F55B3
split-complementary
#B31F9F #55B31F #1FB37D
monochromatic
#4B0D42 #7F1671 #B31F9F #DC33C5 #E568D4

Accessibility & contrast

On white

5.81
#B31F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B31F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F9F
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F9F#FFFFFF#000000##FFFFFF
##B31F9F1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D58A2
Deuteranopia (green-blind)
#586D9C
Tritanopia (blue-blind)
#BC2F60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31f9f;
/* rgb */ color: rgb(179, 31, 159);
/* oklch */ color: oklch(53.7% 0.220 334.8);
Tailwind
colors: {
  custom: {
    50: '#ce6fbc',
    500: '#b31f9f',
    950: '#000000',
  },
}
SCSS
$custom: #b31f9f;
$custom-light: #ce6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f9f",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 308.108,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53681,
    "c": 0.21963,
    "h": 334.8
  },
  "luminance": 0.13067
}

Semantic roles & 50–950 ramp

primary
#B31F9F
secondary
#64CA71
accent
#ED533B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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