#B731A6#B731A6

#B731A6 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.9% C 0.210 H 333.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B731A6
RGBrgb(183, 49, 166)
HSLhsl(308, 58%, 45%)
HSVhsv(308, 73%, 72%)
CMYKcmyk(0%, 73.2%, 9.3%, 28.2%)
CIE-LABlab(45.66, 64.96, -33.90)
CIE-LCHlch(45.66, 73.28, 332.44°)
OKLaboklab(55.93% 0.1882 -0.0929)
OKLCHoklch(55.93% 0.21 333.7)
XYZxyz(27.5099, 15.0194, 37.5192)
Luminance0.1502 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731A6 #31B742
analogous
#8531B7 #B731A6 #B73163
triadic
#B731A6 #A6B731 #31A6B7
tetradic
#B731A6 #B78531 #31B742 #3163B7
square
#B731A6 #B78531 #31B742 #3163B7
split-complementary
#B731A6 #63B731 #31B785
monochromatic
#56174E #87247A #B731A6 #D154C1 #DE84D3

Accessibility & contrast

On white

5.25
#B731A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B731A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731A6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731A6#FFFFFF#000000##FFFFFF
##B731A61.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60A9
Deuteranopia (green-blind)
#5F73A3
Tritanopia (blue-blind)
#BF3E68
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b731a6;
/* rgb */ color: rgb(183, 49, 166);
/* oklch */ color: oklch(55.9% 0.210 333.7);
Tailwind
colors: {
  custom: {
    50: '#d076c1',
    500: '#b731a6',
    950: '#000000',
  },
}
SCSS
$custom: #b731a6;
$custom-light: #d076c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b731a6",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 307.612,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5593,
    "c": 0.20987,
    "h": 333.7
  },
  "luminance": 0.15017
}

Semantic roles & 50–950 ramp

primary
#B731A6
secondary
#7CC886
accent
#E15A47
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B731A6

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

Preview Lab → · Contrast checker → · Palette generator →

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