#B31A9E#B31A9E

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

Color values

HEX#B31A9E
RGBrgb(179, 26, 158)
HSLhsl(308, 75%, 40%)
HSVhsv(308, 85%, 70%)
CMYKcmyk(0%, 85.5%, 11.7%, 29.8%)
CIE-LABlab(42.45, 68.98, -34.22)
CIE-LCHlch(42.45, 77.00, 333.61°)
OKLaboklab(53.37% 0.2018 -0.0938)
OKLCHoklch(53.37% 0.223 335.1)
XYZxyz(25.1317, 12.7935, 33.4869)
Luminance0.1279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A9E #1AB32F
analogous
#7B1AB3 #B31A9E #B31A52
triadic
#B31A9E #9EB31A #1A9EB3
tetradic
#B31A9E #B37B1A #1AB32F #1A52B3
square
#B31A9E #B37B1A #1AB32F #1A52B3
split-complementary
#B31A9E #52B31A #1AB37B
monochromatic
#480A40 #7E126F #B31A9E #E02AC7 #E860D5

Accessibility & contrast

On white

5.90
#B31A9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B31A9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A9E
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A9E#FFFFFF#000000##FFFFFF
##B31A9E1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31a9e;
/* rgb */ color: rgb(179, 26, 158);
/* oklch */ color: oklch(53.4% 0.223 335.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ebb',
    500: '#b31a9e',
    950: '#000000',
  },
}
SCSS
$custom: #b31a9e;
$custom-light: #ce6ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a9e",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 308.235,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53366,
    "c": 0.2225,
    "h": 335.1
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#B31A9E
secondary
#5DCC6C
accent
#F15037
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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