#B731A9#B731A9

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

Color values

HEX#B731A9
RGBrgb(183, 49, 169)
HSLhsl(306, 58%, 45%)
HSVhsv(306, 73%, 72%)
CMYKcmyk(0%, 73.2%, 7.7%, 28.2%)
CIE-LABlab(45.81, 65.42, -35.44)
CIE-LCHlch(45.81, 74.40, 331.55°)
OKLaboklab(56.09% 0.1884 -0.0973)
OKLCHoklch(56.09% 0.212 332.7)
XYZxyz(27.7883, 15.1308, 38.9854)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731A9 #31B73F
analogous
#8231B7 #B731A9 #B73166
triadic
#B731A9 #A9B731 #31A9B7
tetradic
#B731A9 #B78231 #31B73F #3166B7
square
#B731A9 #B78231 #31B73F #3166B7
split-complementary
#B731A9 #66B731 #31B782
monochromatic
#561750 #87247C #B731A9 #D154C4 #DE84D5

Accessibility & contrast

On white

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

On black

4.03
#B731A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B731A9#FFFFFF#000000##FFFFFF
##B731A91.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AC
Deuteranopia (green-blind)
#5D73A6
Tritanopia (blue-blind)
#BF3F6A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b731a9;
/* rgb */ color: rgb(183, 49, 169);
/* oklch */ color: oklch(56.1% 0.212 332.7);
Tailwind
colors: {
  custom: {
    50: '#d077c3',
    500: '#b731a9',
    950: '#000000',
  },
}
SCSS
$custom: #b731a9;
$custom-light: #d077c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b731a9",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 306.269,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56088,
    "c": 0.21203,
    "h": 332.7
  },
  "luminance": 0.15128
}

Semantic roles & 50–950 ramp

primary
#B731A9
secondary
#7CC884
accent
#E15747
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B731A9

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

Preview Lab → · Contrast checker → · Palette generator →

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