#B540BE#B540BE

#B540BE is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.210 H 324.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#B540BE
RGBrgb(181, 64, 190)
HSLhsl(296, 50%, 50%)
HSVhsv(296, 66%, 75%)
CMYKcmyk(4.7%, 66.3%, 0%, 25.5%)
CIE-LABlab(48.52, 63.00, -43.50)
CIE-LCHlch(48.52, 76.56, 325.38°)
OKLaboklab(58.34% 0.1715 -0.1208)
OKLCHoklch(58.34% 0.21 324.8)
XYZxyz(30.1830, 17.2101, 50.4373)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540BE #49BE40
analogous
#7640BE #B540BE #BE4088
triadic
#B540BE #BEB540 #40BEB5
tetradic
#B540BE #BE7640 #49BE40 #4088BE
square
#B540BE #BE7640 #49BE40 #4088BE
split-complementary
#B540BE #88BE40 #40BE76
monochromatic
#5E2162 #893190 #B540BE #C76DCE #D99BDD

Accessibility & contrast

On white

4.73
#B540BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#B540BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540BE
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540BE#FFFFFF#000000##FFFFFF
##B540BE1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256AC2
Deuteranopia (green-blind)
#5878BB
Tritanopia (blue-blind)
#B9537A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b540be;
/* rgb */ color: rgb(181, 64, 190);
/* oklch */ color: oklch(58.3% 0.210 324.8);
Tailwind
colors: {
  custom: {
    50: '#cf7ed2',
    500: '#b540be',
    950: '#000000',
  },
}
SCSS
$custom: #b540be;
$custom-light: #cf7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#b540be",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 295.714,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.58337,
    "c": 0.20981,
    "h": 324.8
  },
  "luminance": 0.17208
}

Semantic roles & 50–950 ramp

primary
#B540BE
secondary
#94C990
accent
#D94F59
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B540BE

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

Preview Lab → · Contrast checker → · Palette generator →

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