#B531B7#B531B7

#B531B7 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.6% C 0.222 H 327.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B531B7
RGBrgb(181, 49, 183)
HSLhsl(299, 58%, 45%)
HSVhsv(299, 73%, 72%)
CMYKcmyk(1.1%, 73.2%, 0%, 28.2%)
CIE-LABlab(46.23, 67.20, -43.05)
CIE-LCHlch(46.23, 79.81, 327.35°)
OKLaboklab(56.57% 0.1866 -0.1194)
OKLCHoklch(56.57% 0.222 327.4)
XYZxyz(28.7012, 15.4413, 46.2593)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531B7 #33B731
analogous
#7231B7 #B531B7 #B73176
triadic
#B531B7 #B7B531 #31B7B5
tetradic
#B531B7 #B77231 #33B731 #3176B7
square
#B531B7 #B77231 #33B731 #3176B7
split-complementary
#B531B7 #76B731 #31B772
monochromatic
#561756 #852487 #B531B7 #CF54D1 #DD84DE

Accessibility & contrast

On white

5.14
#B531B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B531B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531B7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531B7#FFFFFF#000000##FFFFFF
##B531B71.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1163BB
Deuteranopia (green-blind)
#5473B4
Tritanopia (blue-blind)
#BA4772
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b531b7;
/* rgb */ color: rgb(181, 49, 183);
/* oklch */ color: oklch(56.6% 0.222 327.4);
Tailwind
colors: {
  custom: {
    50: '#cf77cd',
    500: '#b531b7',
    950: '#000000',
  },
}
SCSS
$custom: #b531b7;
$custom-light: #cf77cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b531b7",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 299.104,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56568,
    "c": 0.22152,
    "h": 327.4
  },
  "luminance": 0.15439
}

Semantic roles & 50–950 ramp

primary
#B531B7
secondary
#7DC87C
accent
#E14749
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B531B7

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

Preview Lab → · Contrast checker → · Palette generator →

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