#B541B2#B541B2

#B541B2 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.8% C 0.199 H 328.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B541B2
RGBrgb(181, 65, 178)
HSLhsl(302, 47%, 48%)
HSVhsv(302, 64%, 71%)
CMYKcmyk(0%, 64.1%, 1.7%, 29%)
CIE-LABlab(48.03, 60.53, -37.27)
CIE-LCHlch(48.03, 71.09, 328.38°)
OKLaboklab(57.78% 0.1699 -0.1028)
OKLCHoklch(57.78% 0.199 328.8)
XYZxyz(28.9819, 16.8207, 43.8311)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B541B2 #41B544
analogous
#7E41B5 #B541B2 #B54178
triadic
#B541B2 #B2B541 #41B2B5
tetradic
#B541B2 #B57E41 #41B544 #4178B5
square
#B541B2 #B57E41 #41B544 #4178B5
split-complementary
#B541B2 #78B541 #41B57E
monochromatic
#5B2159 #883186 #B541B2 #C96AC7 #DA97D8

Accessibility & contrast

On white

4.81
#B541B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B541B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B541B2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B541B2#FFFFFF#000000##FFFFFF
##B541B21.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#5F77AF
Tritanopia (blue-blind)
#BB4F74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b541b2;
/* rgb */ color: rgb(181, 65, 178);
/* oklch */ color: oklch(57.8% 0.199 328.8);
Tailwind
colors: {
  custom: {
    50: '#ce7ec9',
    500: '#b541b2',
    950: '#000000',
  },
}
SCSS
$custom: #b541b2;
$custom-light: #ce7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b541b2",
  "rgb": {
    "r": 181,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 301.552,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57778,
    "c": 0.19858,
    "h": 328.8
  },
  "luminance": 0.16819
}

Semantic roles & 50–950 ramp

primary
#B541B2
secondary
#8CC58E
accent
#D75451
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B541B2

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

Preview Lab → · Contrast checker → · Palette generator →

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