#B531AF#B531AF

#B531AF is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.215 H 330.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B531AF
RGBrgb(181, 49, 175)
HSLhsl(303, 57%, 45%)
HSVhsv(303, 73%, 71%)
CMYKcmyk(0%, 72.9%, 3.3%, 29%)
CIE-LABlab(45.80, 65.91, -39.04)
CIE-LCHlch(45.80, 76.60, 329.36°)
OKLaboklab(56.11% 0.1865 -0.1078)
OKLCHoklch(56.11% 0.215 330)
XYZxyz(27.8921, 15.1177, 41.9981)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531AF #31B537
analogous
#7931B5 #B531AF #B5316D
triadic
#B531AF #AFB531 #31AFB5
tetradic
#B531AF #B57931 #31B537 #316DB5
square
#B531AF #B57931 #31B537 #316DB5
split-complementary
#B531AF #6DB531 #31B579
monochromatic
#551752 #852480 #B531AF #D053CB #DD83D9

Accessibility & contrast

On white

5.22
#B531AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B531AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531AF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531AF#FFFFFF#000000##FFFFFF
##B531AF1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2161B2
Deuteranopia (green-blind)
#5873AC
Tritanopia (blue-blind)
#BC436D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b531af;
/* rgb */ color: rgb(181, 49, 175);
/* oklch */ color: oklch(56.1% 0.215 330.0);
Tailwind
colors: {
  custom: {
    50: '#cf77c7',
    500: '#b531af',
    950: '#000000',
  },
}
SCSS
$custom: #b531af;
$custom-light: #cf77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b531af",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 302.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56114,
    "c": 0.21544,
    "h": 330
  },
  "luminance": 0.15116
}

Semantic roles & 50–950 ramp

primary
#B531AF
secondary
#7BC77F
accent
#E14E47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B531AF

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

Preview Lab → · Contrast checker → · Palette generator →

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