#B540BF#B540BF

#B540BF is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.211 H 324.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B540BF
RGBrgb(181, 64, 191)
HSLhsl(295, 50%, 50%)
HSVhsv(295, 66%, 75%)
CMYKcmyk(5.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(48.58, 63.18, -43.99)
CIE-LCHlch(48.58, 76.99, 325.15°)
OKLaboklab(58.39% 0.1715 -0.1223)
OKLCHoklch(58.39% 0.211 324.5)
XYZxyz(30.2926, 17.2540, 51.0149)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540BF #4ABF40
analogous
#7640BF #B540BF #BF4089
triadic
#B540BF #BFB540 #40BFB5
tetradic
#B540BF #BF7640 #4ABF40 #4089BF
square
#B540BF #BF7640 #4ABF40 #4089BF
split-complementary
#B540BF #89BF40 #40BF76
monochromatic
#5E2163 #8A3191 #B540BF #C76ECE #D99CDE

Accessibility & contrast

On white

4.72
#B540BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B540BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540BF
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540BF#FFFFFF#000000##FFFFFF
##B540BF1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246AC3
Deuteranopia (green-blind)
#5778BC
Tritanopia (blue-blind)
#B9547A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b540bf;
/* rgb */ color: rgb(181, 64, 191);
/* oklch */ color: oklch(58.4% 0.211 324.5);
Tailwind
colors: {
  custom: {
    50: '#cf7ed3',
    500: '#b540bf',
    950: '#000000',
  },
}
SCSS
$custom: #b540bf;
$custom-light: #cf7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#b540bf",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 295.276,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.58394,
    "c": 0.21066,
    "h": 324.5
  },
  "luminance": 0.17252
}

Semantic roles & 50–950 ramp

primary
#B540BF
secondary
#95CA91
accent
#D94E59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B540BF

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

Preview Lab → · Contrast checker → · Palette generator →

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