#B731A2#B731A2

#B731A2 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.207 H 335.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B731A2
RGBrgb(183, 49, 162)
HSLhsl(309, 58%, 45%)
HSVhsv(309, 73%, 72%)
CMYKcmyk(0%, 73.2%, 11.5%, 28.2%)
CIE-LABlab(45.46, 64.36, -31.83)
CIE-LCHlch(45.46, 71.80, 333.68°)
OKLaboklab(55.72% 0.1879 -0.087)
OKLCHoklch(55.72% 0.207 335.2)
XYZxyz(27.1487, 14.8749, 35.6167)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731A2 #31B746
analogous
#8931B7 #B731A2 #B7315F
triadic
#B731A2 #A2B731 #31A2B7
tetradic
#B731A2 #B78931 #31B746 #315FB7
square
#B731A2 #B78931 #31B746 #315FB7
split-complementary
#B731A2 #5FB731 #31B789
monochromatic
#56174D #872477 #B731A2 #D154BE #DE84D0

Accessibility & contrast

On white

5.28
#B731A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B731A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731A2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731A2#FFFFFF#000000##FFFFFF
##B731A21.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#60739F
Tritanopia (blue-blind)
#C03C66
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b731a2;
/* rgb */ color: rgb(183, 49, 162);
/* oklch */ color: oklch(55.7% 0.207 335.2);
Tailwind
colors: {
  custom: {
    50: '#d076be',
    500: '#b731a2',
    950: '#000000',
  },
}
SCSS
$custom: #b731a2;
$custom-light: #d076be;
$custom-dark: #000000;
JSON
{
  "hex": "#b731a2",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 309.403,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55722,
    "c": 0.20703,
    "h": 335.2
  },
  "luminance": 0.14873
}

Semantic roles & 50–950 ramp

primary
#B731A2
secondary
#7CC888
accent
#E15F47
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B731A2

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

Preview Lab → · Contrast checker → · Palette generator →

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