#B731AA#B731AA

#B731AA is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.213 H 332.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B731AA
RGBrgb(183, 49, 170)
HSLhsl(306, 58%, 45%)
HSVhsv(306, 73%, 72%)
CMYKcmyk(0%, 73.2%, 7.1%, 28.2%)
CIE-LABlab(45.86, 65.57, -35.96)
CIE-LCHlch(45.86, 74.78, 331.26°)
OKLaboklab(56.14% 0.1884 -0.0988)
OKLCHoklch(56.14% 0.213 332.3)
XYZxyz(27.8825, 15.1685, 39.4817)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731AA #31B73E
analogous
#8131B7 #B731AA #B73167
triadic
#B731AA #AAB731 #31AAB7
tetradic
#B731AA #B78131 #31B73E #3167B7
square
#B731AA #B78131 #31B73E #3167B7
split-complementary
#B731AA #67B731 #31B781
monochromatic
#561750 #87247D #B731AA #D154C5 #DE84D5

Accessibility & contrast

On white

5.21
#B731AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B731AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731AA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731AA#FFFFFF#000000##FFFFFF
##B731AA1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AD
Deuteranopia (green-blind)
#5D73A7
Tritanopia (blue-blind)
#BF406B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b731aa;
/* rgb */ color: rgb(183, 49, 170);
/* oklch */ color: oklch(56.1% 0.213 332.3);
Tailwind
colors: {
  custom: {
    50: '#d077c4',
    500: '#b731aa',
    950: '#000000',
  },
}
SCSS
$custom: #b731aa;
$custom-light: #d077c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b731aa",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 305.821,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56142,
    "c": 0.21277,
    "h": 332.3
  },
  "luminance": 0.15166
}

Semantic roles & 50–950 ramp

primary
#B731AA
secondary
#7CC884
accent
#E15647
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B731AA

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

Preview Lab → · Contrast checker → · Palette generator →

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