#B31E9F#B31E9F

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

Color values

HEX#B31E9F
RGBrgb(179, 30, 159)
HSLhsl(308, 71%, 41%)
HSVhsv(308, 83%, 70%)
CMYKcmyk(0%, 83.2%, 11.2%, 29.8%)
CIE-LABlab(42.79, 68.29, -34.29)
CIE-LCHlch(42.79, 76.41, 333.34°)
OKLaboklab(53.63% 0.1993 -0.094)
OKLCHoklch(53.63% 0.22 334.8)
XYZxyz(25.3130, 13.0178, 33.9737)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31E9F #1EB332
analogous
#7C1EB3 #B31E9F #B31E54
triadic
#B31E9F #9FB31E #1E9FB3
tetradic
#B31E9F #B37C1E #1EB332 #1E54B3
square
#B31E9F #B37C1E #1EB332 #1E54B3
split-complementary
#B31E9F #54B31E #1EB37C
monochromatic
#4A0C42 #7F1570 #B31E9F #DD32C6 #E566D4

Accessibility & contrast

On white

5.83
#B31E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B31E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31E9F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31E9F#FFFFFF#000000##FFFFFF
##B31E9F1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31e9f;
/* rgb */ color: rgb(179, 30, 159);
/* oklch */ color: oklch(53.6% 0.220 334.8);
Tailwind
colors: {
  custom: {
    50: '#ce6fbc',
    500: '#b31e9f',
    950: '#000000',
  },
}
SCSS
$custom: #b31e9f;
$custom-light: #ce6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31e9f",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 308.054,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53626,
    "c": 0.22037,
    "h": 334.8
  },
  "luminance": 0.13015
}

Semantic roles & 50–950 ramp

primary
#B31E9F
secondary
#62CB70
accent
#EE523A
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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