#B540C7#B540C7

#B540C7 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.217 H 322.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B540C7
RGBrgb(181, 64, 199)
HSLhsl(292, 55%, 52%)
HSVhsv(292, 68%, 78%)
CMYKcmyk(9%, 67.8%, 0%, 22%)
CIE-LABlab(49.03, 64.61, -47.91)
CIE-LCHlch(49.03, 80.44, 323.44°)
OKLaboklab(58.86% 0.1715 -0.1337)
OKLCHoklch(58.86% 0.217 322.1)
XYZxyz(31.1972, 17.6158, 55.7787)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540C7 #52C740
analogous
#7240C7 #B540C7 #C74096
triadic
#B540C7 #C7B540 #40C7B5
tetradic
#B540C7 #C77240 #52C740 #4096C7
square
#B540C7 #C77240 #52C740 #4096C7
split-complementary
#B540C7 #96C740 #40C772
monochromatic
#62206D #8D2E9C #B540C7 #C76FD5 #DA9FE3

Accessibility & contrast

On white

4.64
#B540C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B540C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B540C7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540C7#FFFFFF#000000##FFFFFF
##B540C71.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156CCB
Deuteranopia (green-blind)
#5279C4
Tritanopia (blue-blind)
#B7577F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b540c7;
/* rgb */ color: rgb(181, 64, 199);
/* oklch */ color: oklch(58.9% 0.217 322.1);
Tailwind
colors: {
  custom: {
    50: '#cf7ed8',
    500: '#b540c7',
    950: '#000000',
  },
}
SCSS
$custom: #b540c7;
$custom-light: #cf7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#b540c7",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 292,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58861,
    "c": 0.21745,
    "h": 322.1
  },
  "luminance": 0.17614
}

Semantic roles & 50–950 ramp

primary
#B540C7
secondary
#9CCF94
accent
#DE4A5E
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B540C7

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

Preview Lab → · Contrast checker → · Palette generator →

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