#B540FF#B540FF

#B540FF is a light, highly saturated violet. Relative luminance 0.207; OKLCH L 62.6% C 0.267 H 308.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B540FF
RGBrgb(181, 64, 255)
HSLhsl(277, 100%, 63%)
HSVhsv(277, 75%, 100%)
CMYKcmyk(29%, 74.9%, 0%, 0%)
CIE-LABlab(52.63, 75.51, -73.80)
CIE-LCHlch(52.63, 105.59, 315.66°)
OKLaboklab(62.57% 0.1651 -0.2096)
OKLCHoklch(62.57% 0.267 308.2)
XYZxyz(38.9357, 20.7112, 96.5349)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540FF #8AFF40
analogous
#5640FF #B540FF #FF40E9
triadic
#B540FF #FFB540 #40FFB5
tetradic
#B540FF #FF5640 #8AFF40 #40E9FF
square
#B540FF #FF5640 #8AFF40 #40E9FF
split-complementary
#B540FF #E9FF40 #40FF56
monochromatic
#7800C5 #9D03FF #B540FF #CD7DFF #E4BAFF

Accessibility & contrast

On white

4.08
#B540FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#B540FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540FF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540FF#FFFFFF#000000##000000
##B540FF1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#007FFB
Tritanopia (blue-blind)
#A96F9E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b540ff;
/* rgb */ color: rgb(181, 64, 255);
/* oklch */ color: oklch(62.6% 0.267 308.2);
Tailwind
colors: {
  custom: {
    50: '#d180ff',
    500: '#b540ff',
    950: '#000000',
  },
}
SCSS
$custom: #b540ff;
$custom-light: #d180ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ff",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 276.754,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62567,
    "c": 0.26682,
    "h": 308.2
  },
  "luminance": 0.20711
}

Semantic roles & 50–950 ramp

primary
#B540FF
secondary
#C6F0AB
accent
#E60059
background
#FDF8FF
surface
#FBEFFF
border
#D4CAD7
text
#150B18
muted
#837C86

Preview Lab

Preview with #B540FF

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

Preview Lab → · Contrast checker → · Palette generator →

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