#B731A8#B731A8

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

Color values

HEX#B731A8
RGBrgb(183, 49, 168)
HSLhsl(307, 58%, 45%)
HSVhsv(307, 73%, 72%)
CMYKcmyk(0%, 73.2%, 8.2%, 28.2%)
CIE-LABlab(45.76, 65.26, -34.93)
CIE-LCHlch(45.76, 74.02, 331.84°)
OKLaboklab(56.04% 0.1883 -0.0959)
OKLCHoklch(56.04% 0.211 333)
XYZxyz(27.6948, 15.0934, 38.4929)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731A8 #31B740
analogous
#8331B7 #B731A8 #B73165
triadic
#B731A8 #A8B731 #31A8B7
tetradic
#B731A8 #B78331 #31B740 #3165B7
square
#B731A8 #B78331 #31B740 #3165B7
split-complementary
#B731A8 #65B731 #31B783
monochromatic
#56174F #87247C #B731A8 #D154C3 #DE84D4

Accessibility & contrast

On white

5.23
#B731A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B731A8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731A8#FFFFFF#000000##FFFFFF
##B731A81.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B60AB
Deuteranopia (green-blind)
#5E73A5
Tritanopia (blue-blind)
#BF3F69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b731a8;
/* rgb */ color: rgb(183, 49, 168);
/* oklch */ color: oklch(56.0% 0.211 333.0);
Tailwind
colors: {
  custom: {
    50: '#d077c2',
    500: '#b731a8',
    950: '#000000',
  },
}
SCSS
$custom: #b731a8;
$custom-light: #d077c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b731a8",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 306.716,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56035,
    "c": 0.21131,
    "h": 333
  },
  "luminance": 0.15091
}

Semantic roles & 50–950 ramp

primary
#B731A8
secondary
#7CC885
accent
#E15847
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B731A8

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

Preview Lab → · Contrast checker → · Palette generator →

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