#B531C2#B531C2

#B531C2 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.230 H 324.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B531C2
RGBrgb(181, 49, 194)
HSLhsl(295, 60%, 48%)
HSVhsv(295, 75%, 76%)
CMYKcmyk(6.7%, 74.7%, 0%, 23.9%)
CIE-LABlab(46.87, 69.05, -48.47)
CIE-LCHlch(46.87, 84.36, 324.93°)
OKLaboklab(57.22% 0.1862 -0.1352)
OKLCHoklch(57.22% 0.23 324)
XYZxyz(29.8911, 15.9173, 52.5264)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531C2 #3EC231
analogous
#6D31C2 #B531C2 #C23186
triadic
#B531C2 #C2B531 #31C2B5
tetradic
#B531C2 #C26D31 #3EC231 #3186C2
square
#B531C2 #C26D31 #3EC231 #3186C2
split-complementary
#B531C2 #86C231 #31C26D
monochromatic
#5A1860 #872591 #B531C2 #CA5BD6 #DA8CE2

Accessibility & contrast

On white

5.02
#B531C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#B531C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531C2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531C2#FFFFFF#000000##FFFFFF
##B531C21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#B84C78
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b531c2;
/* rgb */ color: rgb(181, 49, 194);
/* oklch */ color: oklch(57.2% 0.230 324.0);
Tailwind
colors: {
  custom: {
    50: '#cf77d5',
    500: '#b531c2',
    950: '#000000',
  },
}
SCSS
$custom: #b531c2;
$custom-light: #cf77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#b531c2",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 294.621,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57223,
    "c": 0.23008,
    "h": 324
  },
  "luminance": 0.15915
}

Semantic roles & 50–950 ramp

primary
#B531C2
secondary
#89CC83
accent
#E34553
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B531C2

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

Preview Lab → · Contrast checker → · Palette generator →

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