#B540CE#B540CE

#B540CE is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.223 H 320.0°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B540CE
RGBrgb(181, 64, 206)
HSLhsl(289, 59%, 53%)
HSVhsv(289, 69%, 81%)
CMYKcmyk(12.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(49.43, 65.90, -51.30)
CIE-LCHlch(49.43, 83.51, 322.10°)
OKLaboklab(59.28% 0.1713 -0.1436)
OKLCHoklch(59.28% 0.223 320)
XYZxyz(32.0287, 17.9484, 60.1579)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540CE #59CE40
analogous
#6E40CE #B540CE #CE40A0
triadic
#B540CE #CEB540 #40CEB5
tetradic
#B540CE #CE6E40 #59CE40 #40A0CE
square
#B540CE #CE6E40 #59CE40 #40A0CE
split-complementary
#B540CE #A0CE40 #40CE6E
monochromatic
#661E75 #902BA6 #B540CE #C871DA #DBA1E7

Accessibility & contrast

On white

4.58
#B540CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#B540CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540CE
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540CE#FFFFFF#000000##000000
##B540CE1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED2
Deuteranopia (green-blind)
#4C7ACB
Tritanopia (blue-blind)
#B65A83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b540ce;
/* rgb */ color: rgb(181, 64, 206);
/* oklch */ color: oklch(59.3% 0.223 320.0);
Tailwind
colors: {
  custom: {
    50: '#cf7ede',
    500: '#b540ce',
    950: '#000000',
  },
}
SCSS
$custom: #b540ce;
$custom-light: #cf7ede;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ce",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 289.437,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59284,
    "c": 0.22348,
    "h": 320
  },
  "luminance": 0.17947
}

Semantic roles & 50–950 ramp

primary
#B540CE
secondary
#A1D496
accent
#E24561
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B540CE

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

Preview Lab → · Contrast checker → · Palette generator →

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