#B731C2#B731C2

#B731C2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.231 H 324.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B731C2
RGBrgb(183, 49, 194)
HSLhsl(295, 60%, 48%)
HSVhsv(295, 75%, 76%)
CMYKcmyk(5.7%, 74.7%, 0%, 23.9%)
CIE-LABlab(47.18, 69.45, -47.94)
CIE-LCHlch(47.18, 84.39, 325.39°)
OKLaboklab(57.51% 0.1884 -0.1336)
OKLCHoklch(57.51% 0.231 324.7)
XYZxyz(30.3636, 16.1609, 52.5486)
Luminance0.1616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731C2 #3CC231
analogous
#6E31C2 #B731C2 #C23185
triadic
#B731C2 #C2B731 #31C2B7
tetradic
#B731C2 #C26E31 #3CC231 #3185C2
square
#B731C2 #C26E31 #3CC231 #3185C2
split-complementary
#B731C2 #85C231 #31C26E
monochromatic
#5B1860 #892591 #B731C2 #CC5BD6 #DB8CE2

Accessibility & contrast

On white

4.96
#B731C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B731C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731C2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731C2#FFFFFF#000000##FFFFFF
##B731C21.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#4F75BF
Tritanopia (blue-blind)
#BB4B78
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b731c2;
/* rgb */ color: rgb(183, 49, 194);
/* oklch */ color: oklch(57.5% 0.231 324.7);
Tailwind
colors: {
  custom: {
    50: '#d178d5',
    500: '#b731c2',
    950: '#000000',
  },
}
SCSS
$custom: #b731c2;
$custom-light: #d178d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b731c2",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 295.448,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57512,
    "c": 0.23094,
    "h": 324.7
  },
  "luminance": 0.16159
}

Semantic roles & 50–950 ramp

primary
#B731C2
secondary
#88CC83
accent
#E34551
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B731C2

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

Preview Lab → · Contrast checker → · Palette generator →

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