#540EA0#540EA0

#540EA0 is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.8% C 0.201 H 296.3°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#540EA0
RGBrgb(84, 14, 160)
HSLhsl(269, 84%, 34%)
HSVhsv(269, 91%, 63%)
CMYKcmyk(47.5%, 91.3%, 0%, 37.3%)
CIE-LABlab(25.97, 56.36, -62.83)
CIE-LCHlch(25.97, 84.40, 311.89°)
OKLaboklab(38.84% 0.0892 -0.1802)
OKLCHoklch(38.84% 0.201 296.3)
XYZxyz(10.1567, 4.7367, 33.6300)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540EA0 #5AA00E
analogous
#0E11A0 #540EA0 #9D0EA0
triadic
#540EA0 #A0540E #0EA054
tetradic
#540EA0 #A00E11 #5AA00E #0EA09D
square
#540EA0 #A00E11 #5AA00E #0EA09D
split-complementary
#540EA0 #A09D0E #11A00E
monochromatic
#19042F #360968 #540EA0 #7213D8 #913BEE

Accessibility & contrast

On white

10.78
#540EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#540EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540EA0
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540EA0#FFFFFF#000000##FFFFFF
##540EA01.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#3E3F5D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #540ea0;
/* rgb */ color: rgb(84, 14, 160);
/* oklch */ color: oklch(38.8% 0.201 296.3);
Tailwind
colors: {
  custom: {
    50: '#8d5cbd',
    500: '#540ea0',
    950: '#000000',
  },
}
SCSS
$custom: #540ea0;
$custom-light: #8d5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#540ea0",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 160
  },
  "hsl": {
    "h": 268.767,
    "s": 83.908,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38837,
    "c": 0.2011,
    "h": 296.3
  },
  "luminance": 0.04737
}

Semantic roles & 50–950 ramp

primary
#540EA0
secondary
#88CD3D
accent
#FA2E98
background
#F9F5FB
surface
#F1E9F7
border
#CBC5D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #540EA0

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

Preview Lab → · Contrast checker → · Palette generator →

#540EA0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva