#B540C4#B540C4

#B540C4 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.215 H 323.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B540C4
RGBrgb(181, 64, 196)
HSLhsl(293, 53%, 51%)
HSVhsv(293, 67%, 77%)
CMYKcmyk(7.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(48.86, 64.07, -46.45)
CIE-LCHlch(48.86, 79.14, 324.06°)
OKLaboklab(58.68% 0.1715 -0.1294)
OKLCHoklch(58.68% 0.215 323)
XYZxyz(30.8523, 17.4778, 53.9623)
Luminance0.1748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540C4 #4FC440
analogous
#7340C4 #B540C4 #C44091
triadic
#B540C4 #C4B540 #40C4B5
tetradic
#B540C4 #C47340 #4FC440 #4091C4
square
#B540C4 #C47340 #4FC440 #4091C4
split-complementary
#B540C4 #91C440 #40C473
monochromatic
#612069 #8C2F98 #B540C4 #C76FD2 #D99EE1

Accessibility & contrast

On white

4.67
#B540C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#B540C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B540C4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540C4#FFFFFF#000000##FFFFFF
##B540C41.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6BC8
Deuteranopia (green-blind)
#5479C1
Tritanopia (blue-blind)
#B8567D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b540c4;
/* rgb */ color: rgb(181, 64, 196);
/* oklch */ color: oklch(58.7% 0.215 323.0);
Tailwind
colors: {
  custom: {
    50: '#cf7ed6',
    500: '#b540c4',
    950: '#000000',
  },
}
SCSS
$custom: #b540c4;
$custom-light: #cf7ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#b540c4",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 293.182,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58684,
    "c": 0.21489,
    "h": 323
  },
  "luminance": 0.17476
}

Semantic roles & 50–950 ramp

primary
#B540C4
secondary
#99CD93
accent
#DC4C5C
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B540C4

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

Preview Lab → · Contrast checker → · Palette generator →

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