#A540E0#A540E0

#A540E0 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.4% C 0.234 H 309.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#A540E0
RGBrgb(165, 64, 224)
HSLhsl(278, 72%, 56%)
HSVhsv(278, 71%, 88%)
CMYKcmyk(26.3%, 71.4%, 0%, 12.2%)
CIE-LABlab(48.32, 66.19, -63.48)
CIE-LCHlch(48.32, 91.72, 316.20°)
OKLaboklab(58.39% 0.15 -0.1798)
OKLCHoklch(58.39% 0.234 309.8)
XYZxyz(30.8023, 17.0486, 72.1746)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540E0 #7BE040
analogous
#5540E0 #A540E0 #E040CB
triadic
#A540E0 #E0A540 #40E0A5
tetradic
#A540E0 #E05540 #7BE040 #40CBE0
square
#A540E0 #E05540 #7BE040 #40CBE0
split-complementary
#A540E0 #CBE040 #40E055
monochromatic
#62178E #8720C3 #A540E0 #BE75E9 #D7A9F1

Accessibility & contrast

On white

4.76
#A540E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#A540E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540E0
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540E0#FFFFFF#000000##FFFFFF
##A540E01.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE5
Deuteranopia (green-blind)
#1D74DD
Tritanopia (blue-blind)
#9D648C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a540e0;
/* rgb */ color: rgb(165, 64, 224);
/* oklch */ color: oklch(58.4% 0.234 309.8);
Tailwind
colors: {
  custom: {
    50: '#c57eeb',
    500: '#a540e0',
    950: '#000000',
  },
}
SCSS
$custom: #a540e0;
$custom-light: #c57eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#a540e0",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 277.875,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58392,
    "c": 0.23413,
    "h": 309.8
  },
  "luminance": 0.17048
}

Semantic roles & 50–950 ramp

primary
#A540E0
secondary
#B5DF9D
accent
#EF397C
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A540E0

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

Preview Lab → · Contrast checker → · Palette generator →

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