#B431AF#B431AF

#B431AF is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.215 H 329.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B431AF
RGBrgb(180, 49, 175)
HSLhsl(302, 57%, 45%)
HSVhsv(302, 73%, 71%)
CMYKcmyk(0%, 72.8%, 2.8%, 29.4%)
CIE-LABlab(45.63, 65.69, -39.31)
CIE-LCHlch(45.63, 76.55, 329.10°)
OKLaboklab(55.96% 0.1855 -0.1086)
OKLCHoklch(55.96% 0.215 329.7)
XYZxyz(27.6584, 14.9972, 41.9871)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B431AF #31B436
analogous
#7731B4 #B431AF #B4316E
triadic
#B431AF #AFB431 #31AFB4
tetradic
#B431AF #B47731 #31B436 #316EB4
square
#B431AF #B47731 #31B436 #316EB4
split-complementary
#B431AF #6EB431 #31B477
monochromatic
#541751 #842480 #B431AF #D052CB #DD82DA

Accessibility & contrast

On white

5.25
#B431AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B431AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B431AF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B431AF#FFFFFF#000000##FFFFFF
##B431AF1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#BB436D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b431af;
/* rgb */ color: rgb(180, 49, 175);
/* oklch */ color: oklch(56.0% 0.215 329.7);
Tailwind
colors: {
  custom: {
    50: '#ce76c7',
    500: '#b431af',
    950: '#000000',
  },
}
SCSS
$custom: #b431af;
$custom-light: #ce76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b431af",
  "rgb": {
    "r": 180,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 302.29,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55964,
    "c": 0.21494,
    "h": 329.7
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#B431AF
secondary
#7BC67D
accent
#E04D47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B431AF

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

Preview Lab → · Contrast checker → · Palette generator →

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