#B731B3#B731B3

#B731B3 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.219 H 329.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B731B3
RGBrgb(183, 49, 179)
HSLhsl(302, 58%, 45%)
HSVhsv(302, 73%, 72%)
CMYKcmyk(0%, 73.2%, 2.2%, 28.2%)
CIE-LABlab(46.34, 66.98, -40.52)
CIE-LCHlch(46.34, 78.28, 328.83°)
OKLaboklab(56.64% 0.1887 -0.112)
OKLCHoklch(56.64% 0.219 329.3)
XYZxyz(28.7632, 15.5208, 44.1200)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731B3 #31B735
analogous
#7831B7 #B731B3 #B73170
triadic
#B731B3 #B3B731 #31B3B7
tetradic
#B731B3 #B77831 #31B735 #3170B7
square
#B731B3 #B77831 #31B735 #3170B7
split-complementary
#B731B3 #70B731 #31B778
monochromatic
#561755 #872484 #B731B3 #D154CD #DE84DB

Accessibility & contrast

On white

5.12
#B731B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B731B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731B3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731B3#FFFFFF#000000##FFFFFF
##B731B31.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B7
Deuteranopia (green-blind)
#5874B0
Tritanopia (blue-blind)
#BD446F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b731b3;
/* rgb */ color: rgb(183, 49, 179);
/* oklch */ color: oklch(56.6% 0.219 329.3);
Tailwind
colors: {
  custom: {
    50: '#d077ca',
    500: '#b731b3',
    950: '#000000',
  },
}
SCSS
$custom: #b731b3;
$custom-light: #d077ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b731b3",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 301.791,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56637,
    "c": 0.21943,
    "h": 329.3
  },
  "luminance": 0.15519
}

Semantic roles & 50–950 ramp

primary
#B731B3
secondary
#7CC87F
accent
#E14B47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B731B3

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

Preview Lab → · Contrast checker → · Palette generator →

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