#B540CA#B540CA

#B540CA is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.220 H 321.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B540CA
RGBrgb(181, 64, 202)
HSLhsl(291, 57%, 52%)
HSVhsv(291, 68%, 79%)
CMYKcmyk(10.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(49.20, 65.16, -49.37)
CIE-LCHlch(49.20, 81.75, 322.85°)
OKLaboklab(59.04% 0.1714 -0.1379)
OKLCHoklch(59.04% 0.22 321.2)
XYZxyz(31.5489, 17.7565, 57.6312)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540CA #55CA40
analogous
#7040CA #B540CA #CA409A
triadic
#B540CA #CAB540 #40CAB5
tetradic
#B540CA #CA7040 #55CA40 #409ACA
square
#B540CA #CA7040 #55CA40 #409ACA
split-complementary
#B540CA #9ACA40 #40CA70
monochromatic
#641F70 #8F2CA0 #B540CA #C870D7 #DAA0E5

Accessibility & contrast

On white

4.61
#B540CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#B540CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B540CA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540CA#FFFFFF#000000##FFFFFF
##B540CA1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6DCE
Deuteranopia (green-blind)
#5079C7
Tritanopia (blue-blind)
#B65880
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b540ca;
/* rgb */ color: rgb(181, 64, 202);
/* oklch */ color: oklch(59.0% 0.220 321.2);
Tailwind
colors: {
  custom: {
    50: '#cf7edb',
    500: '#b540ca',
    950: '#000000',
  },
}
SCSS
$custom: #b540ca;
$custom-light: #cf7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ca",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 290.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59041,
    "c": 0.22003,
    "h": 321.2
  },
  "luminance": 0.17755
}

Semantic roles & 50–950 ramp

primary
#B540CA
secondary
#9ED195
accent
#E0485F
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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