#B540E7#B540E7

#B540E7 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.9% C 0.245 H 313.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B540E7
RGBrgb(181, 64, 231)
HSLhsl(282, 78%, 58%)
HSVhsv(282, 72%, 91%)
CMYKcmyk(21.6%, 72.3%, 0%, 9.4%)
CIE-LABlab(50.99, 70.68, -63.02)
CIE-LCHlch(50.99, 94.70, 318.28°)
OKLaboklab(60.89% 0.169 -0.1779)
OKLCHoklch(60.89% 0.245 313.5)
XYZxyz(35.3107, 19.2612, 77.4435)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540E7 #72E740
analogous
#6140E7 #B540E7 #E740C5
triadic
#B540E7 #E7B540 #40E7B5
tetradic
#B540E7 #E76140 #72E740 #40C5E7
square
#B540E7 #E76140 #72E740 #40C5E7
split-complementary
#B540E7 #C5E740 #40E761
monochromatic
#711399 #991AD0 #B540E7 #CA76EE #DFADF5

Accessibility & contrast

On white

4.33
#B540E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#B540E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540E7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540E7#FFFFFF#000000##000000
##B540E71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#327CE3
Tritanopia (blue-blind)
#B06590
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b540e7;
/* rgb */ color: rgb(181, 64, 231);
/* oklch */ color: oklch(60.9% 0.245 313.5);
Tailwind
colors: {
  custom: {
    50: '#d07fef',
    500: '#b540e7',
    950: '#000000',
  },
}
SCSS
$custom: #b540e7;
$custom-light: #d07fef;
$custom-dark: #000000;
JSON
{
  "hex": "#b540e7",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 282.036,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60891,
    "c": 0.24543,
    "h": 313.5
  },
  "luminance": 0.1926
}

Semantic roles & 50–950 ramp

primary
#B540E7
secondary
#B4E3A0
accent
#F4346D
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #B540E7

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

Preview Lab → · Contrast checker → · Palette generator →

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