#B731BA#B731BA

#B731BA is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.225 H 327.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B731BA
RGBrgb(183, 49, 186)
HSLhsl(299, 58%, 46%)
HSVhsv(299, 74%, 73%)
CMYKcmyk(1.6%, 73.7%, 0%, 27.1%)
CIE-LABlab(46.73, 68.12, -44.01)
CIE-LCHlch(46.73, 81.10, 327.14°)
OKLaboklab(57.04% 0.1887 -0.1221)
OKLCHoklch(57.04% 0.225 327.1)
XYZxyz(29.4892, 15.8112, 47.9435)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731BA #34BA31
analogous
#7231BA #B731BA #BA3178
triadic
#B731BA #BAB731 #31BAB7
tetradic
#B731BA #BA7231 #34BA31 #3178BA
square
#B731BA #BA7231 #34BA31 #3178BA
split-complementary
#B731BA #78BA31 #31BA72
monochromatic
#581759 #87248A #B731BA #D056D2 #DD86DF

Accessibility & contrast

On white

5.05
#B731BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B731BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731BA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731BA#FFFFFF#000000##FFFFFF
##B731BA1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C64BE
Deuteranopia (green-blind)
#5475B7
Tritanopia (blue-blind)
#BC4873
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b731ba;
/* rgb */ color: rgb(183, 49, 186);
/* oklch */ color: oklch(57.0% 0.225 327.1);
Tailwind
colors: {
  custom: {
    50: '#d077cf',
    500: '#b731ba',
    950: '#000000',
  },
}
SCSS
$custom: #b731ba;
$custom-light: #d077cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b731ba",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 298.686,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57038,
    "c": 0.22475,
    "h": 327.1
  },
  "luminance": 0.15809
}

Semantic roles & 50–950 ramp

primary
#B731BA
secondary
#80C97E
accent
#E2464A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B731BA

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

Preview Lab → · Contrast checker → · Palette generator →

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