#B731AB#B731AB

#B731AB is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.213 H 332.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B731AB
RGBrgb(183, 49, 171)
HSLhsl(305, 58%, 45%)
HSVhsv(305, 73%, 72%)
CMYKcmyk(0%, 73.2%, 6.6%, 28.2%)
CIE-LABlab(45.92, 65.73, -36.47)
CIE-LCHlch(45.92, 75.16, 330.98°)
OKLaboklab(56.2% 0.1885 -0.1003)
OKLCHoklch(56.2% 0.213 332)
XYZxyz(27.9775, 15.2065, 39.9818)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731AB #31B73D
analogous
#8031B7 #B731AB #B73168
triadic
#B731AB #ABB731 #31ABB7
tetradic
#B731AB #B78031 #31B73D #3168B7
square
#B731AB #B78031 #31B73D #3168B7
split-complementary
#B731AB #68B731 #31B780
monochromatic
#561751 #87247E #B731AB #D154C6 #DE84D6

Accessibility & contrast

On white

5.20
#B731AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B731AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731AB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731AB#FFFFFF#000000##FFFFFF
##B731AB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#5C73A8
Tritanopia (blue-blind)
#BF406B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b731ab;
/* rgb */ color: rgb(183, 49, 171);
/* oklch */ color: oklch(56.2% 0.213 332.0);
Tailwind
colors: {
  custom: {
    50: '#d077c4',
    500: '#b731ab',
    950: '#000000',
  },
}
SCSS
$custom: #b731ab;
$custom-light: #d077c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b731ab",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 305.373,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56196,
    "c": 0.21349,
    "h": 332
  },
  "luminance": 0.15204
}

Semantic roles & 50–950 ramp

primary
#B731AB
secondary
#7CC883
accent
#E15547
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B731AB

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

Preview Lab → · Contrast checker → · Palette generator →

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