#B731A7#B731A7

#B731A7 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.211 H 333.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B731A7
RGBrgb(183, 49, 167)
HSLhsl(307, 58%, 45%)
HSVhsv(307, 73%, 72%)
CMYKcmyk(0%, 73.2%, 8.7%, 28.2%)
CIE-LABlab(45.71, 65.11, -34.42)
CIE-LCHlch(45.71, 73.65, 332.14°)
OKLaboklab(55.98% 0.1883 -0.0944)
OKLCHoklch(55.98% 0.211 333.4)
XYZxyz(27.6020, 15.0563, 38.0041)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731A7 #31B741
analogous
#8431B7 #B731A7 #B73164
triadic
#B731A7 #A7B731 #31A7B7
tetradic
#B731A7 #B78431 #31B741 #3164B7
square
#B731A7 #B78431 #31B741 #3164B7
split-complementary
#B731A7 #64B731 #31B784
monochromatic
#56174F #87247B #B731A7 #D154C2 #DE84D3

Accessibility & contrast

On white

5.24
#B731A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B731A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731A7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731A7#FFFFFF#000000##FFFFFF
##B731A71.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AA
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#BF3E69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b731a7;
/* rgb */ color: rgb(183, 49, 167);
/* oklch */ color: oklch(56.0% 0.211 333.4);
Tailwind
colors: {
  custom: {
    50: '#d076c1',
    500: '#b731a7',
    950: '#000000',
  },
}
SCSS
$custom: #b731a7;
$custom-light: #d076c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b731a7",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 307.164,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55982,
    "c": 0.21059,
    "h": 333.4
  },
  "luminance": 0.15054
}

Semantic roles & 50–950 ramp

primary
#B731A7
secondary
#7CC885
accent
#E15947
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B731A7

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

Preview Lab → · Contrast checker → · Palette generator →

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