#B731D3#B731D3

#B731D3 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.6% C 0.244 H 319.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B731D3
RGBrgb(183, 49, 211)
HSLhsl(290, 65%, 51%)
HSVhsv(290, 77%, 83%)
CMYKcmyk(13.3%, 76.8%, 0%, 17.3%)
CIE-LABlab(48.22, 72.41, -56.09)
CIE-LCHlch(48.22, 91.59, 322.23°)
OKLaboklab(58.58% 0.1869 -0.1575)
OKLCHoklch(58.58% 0.244 319.9)
XYZxyz(32.3831, 16.9687, 63.1849)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B731D3 #4DD331
analogous
#6631D3 #B731D3 #D3319E
triadic
#B731D3 #D3B731 #31D3B7
tetradic
#B731D3 #D36631 #4DD331 #319ED3
square
#B731D3 #D36631 #4DD331 #319ED3
split-complementary
#B731D3 #9ED331 #31D366
monochromatic
#621871 #8E23A4 #B731D3 #C963DE #DA96E9

Accessibility & contrast

On white

4.78
#B731D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B731D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B731D3
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B731D3#FFFFFF#000000##FFFFFF
##B731D31.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#4077CF
Tritanopia (blue-blind)
#B75482
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b731d3;
/* rgb */ color: rgb(183, 49, 211);
/* oklch */ color: oklch(58.6% 0.244 319.9);
Tailwind
colors: {
  custom: {
    50: '#d178e1',
    500: '#b731d3',
    950: '#000000',
  },
}
SCSS
$custom: #b731d3;
$custom-light: #d178e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b731d3",
  "rgb": {
    "r": 183,
    "g": 49,
    "b": 211
  },
  "hsl": {
    "h": 289.63,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58578,
    "c": 0.24441,
    "h": 319.9
  },
  "luminance": 0.16967
}

Semantic roles & 50–950 ramp

primary
#B731D3
secondary
#98D48C
accent
#E8405D
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #B731D3

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

Preview Lab → · Contrast checker → · Palette generator →

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