#B31B9E#B31B9E

#B31B9E is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.222 H 335.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#B31B9E
RGBrgb(179, 27, 158)
HSLhsl(308, 74%, 40%)
HSVhsv(308, 85%, 70%)
CMYKcmyk(0%, 84.9%, 11.7%, 29.8%)
CIE-LABlab(42.52, 68.78, -34.12)
CIE-LCHlch(42.52, 76.78, 333.62°)
OKLaboklab(53.42% 0.2012 -0.0935)
OKLCHoklch(53.42% 0.222 335.1)
XYZxyz(25.1543, 12.8386, 33.4944)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31B9E #1BB330
analogous
#7C1BB3 #B31B9E #B31B52
triadic
#B31B9E #9EB31B #1B9EB3
tetradic
#B31B9E #B37C1B #1BB330 #1B52B3
square
#B31B9E #B37C1B #1BB330 #1B52B3
split-complementary
#B31B9E #52B31B #1BB37C
monochromatic
#490B40 #7E136F #B31B9E #DF2CC6 #E761D5

Accessibility & contrast

On white

5.89
#B31B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B31B9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31B9E
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31B9E#FFFFFF#000000##FFFFFF
##B31B9E1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A56A1
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#BC2C5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31b9e;
/* rgb */ color: rgb(179, 27, 158);
/* oklch */ color: oklch(53.4% 0.222 335.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ebb',
    500: '#b31b9e',
    950: '#000000',
  },
}
SCSS
$custom: #b31b9e;
$custom-light: #ce6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#b31b9e",
  "rgb": {
    "r": 179,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 308.289,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.53415,
    "c": 0.22184,
    "h": 335.1
  },
  "luminance": 0.12836
}

Semantic roles & 50–950 ramp

primary
#B31B9E
secondary
#5ECC6D
accent
#F05137
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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