#B431AB#B431AB

#B431AB is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.212 H 331.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#B431AB
RGBrgb(180, 49, 171)
HSLhsl(304, 57%, 45%)
HSVhsv(304, 73%, 71%)
CMYKcmyk(0%, 72.8%, 5%, 29.4%)
CIE-LABlab(45.42, 65.05, -37.29)
CIE-LCHlch(45.42, 74.98, 330.18°)
OKLaboklab(55.74% 0.1854 -0.1027)
OKLCHoklch(55.74% 0.212 331)
XYZxyz(27.2713, 14.8424, 39.9487)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431AB #31B43A
analogous
#7B31B4 #B431AB #B4316A
triadic
#B431AB #ABB431 #31ABB4
tetradic
#B431AB #B47B31 #31B43A #316AB4
square
#B431AB #B47B31 #31B43A #316AB4
split-complementary
#B431AB #6AB431 #31B47B
monochromatic
#541750 #84247D #B431AB #D052C7 #DD82D7

Accessibility & contrast

On white

5.29
#B431AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B431AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431AB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431AB#FFFFFF#000000##FFFFFF
##B431AB1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#BB416B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b431ab;
/* rgb */ color: rgb(180, 49, 171);
/* oklch */ color: oklch(55.7% 0.212 331.0);
Tailwind
colors: {
  custom: {
    50: '#ce76c4',
    500: '#b431ab',
    950: '#000000',
  },
}
SCSS
$custom: #b431ab;
$custom-light: #ce76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b431ab",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 304.122,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55742,
    "c": 0.21194,
    "h": 331
  },
  "luminance": 0.1484
}

Semantic roles & 50–950 ramp

primary
#B431AB
secondary
#7BC680
accent
#E05247
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B431AB

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

Preview Lab → · Contrast checker → · Palette generator →

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