#B540B3#B540B3

#B540B3 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.201 H 328.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#B540B3
RGBrgb(181, 64, 179)
HSLhsl(301, 48%, 48%)
HSVhsv(301, 65%, 71%)
CMYKcmyk(0%, 64.6%, 1.1%, 29%)
CIE-LABlab(47.94, 61.10, -38.01)
CIE-LCHlch(47.94, 71.96, 328.12°)
OKLaboklab(57.73% 0.1711 -0.1049)
OKLCHoklch(57.73% 0.201 328.5)
XYZxyz(29.0258, 16.7472, 44.3428)
Luminance0.1674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540B3 #40B542
analogous
#7D40B5 #B540B3 #B54078
triadic
#B540B3 #B3B540 #40B3B5
tetradic
#B540B3 #B57D40 #40B542 #4078B5
square
#B540B3 #B57D40 #40B542 #4078B5
split-complementary
#B540B3 #78B540 #40B57D
monochromatic
#5B205A #883086 #B540B3 #CA68C8 #DA96D9

Accessibility & contrast

On white

4.83
#B540B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#B540B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540B3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540B3#FFFFFF#000000##FFFFFF
##B540B31.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B6
Deuteranopia (green-blind)
#5E77B0
Tritanopia (blue-blind)
#BB4F74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b540b3;
/* rgb */ color: rgb(181, 64, 179);
/* oklch */ color: oklch(57.7% 0.201 328.5);
Tailwind
colors: {
  custom: {
    50: '#ce7eca',
    500: '#b540b3',
    950: '#000000',
  },
}
SCSS
$custom: #b540b3;
$custom-light: #ce7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#b540b3",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 301.026,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57727,
    "c": 0.20071,
    "h": 328.5
  },
  "luminance": 0.16745
}

Semantic roles & 50–950 ramp

primary
#B540B3
secondary
#8BC58C
accent
#D75350
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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