#A540D9#A540D9

#A540D9 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.9% C 0.228 H 311.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A540D9
RGBrgb(165, 64, 217)
HSLhsl(280, 67%, 55%)
HSVhsv(280, 71%, 85%)
CMYKcmyk(24%, 70.5%, 0%, 14.9%)
CIE-LABlab(47.85, 64.73, -60.26)
CIE-LCHlch(47.85, 88.44, 317.05°)
OKLaboklab(57.91% 0.1509 -0.1703)
OKLCHoklch(57.91% 0.228 311.5)
XYZxyz(29.8725, 16.6766, 67.2775)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540D9 #74D940
analogous
#5940D9 #A540D9 #D940C0
triadic
#A540D9 #D9A540 #40D9A5
tetradic
#A540D9 #D95940 #74D940 #40C0D9
square
#A540D9 #D95940 #74D940 #40C0D9
split-complementary
#A540D9 #C0D940 #40D959
monochromatic
#601A84 #8524B7 #A540D9 #BD73E3 #D5A6ED

Accessibility & contrast

On white

4.84
#A540D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#A540D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540D9
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540D9#FFFFFF#000000##FFFFFF
##A540D91.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#2B73D6
Tritanopia (blue-blind)
#9F6188
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a540d9;
/* rgb */ color: rgb(165, 64, 217);
/* oklch */ color: oklch(57.9% 0.228 311.5);
Tailwind
colors: {
  custom: {
    50: '#c47de6',
    500: '#a540d9',
    950: '#000000',
  },
}
SCSS
$custom: #a540d9;
$custom-light: #c47de6;
$custom-dark: #000000;
JSON
{
  "hex": "#a540d9",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 279.608,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57908,
    "c": 0.22755,
    "h": 311.5
  },
  "luminance": 0.16676
}

Semantic roles & 50–950 ramp

primary
#A540D9
secondary
#B0DA9A
accent
#EA3E78
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A540D9

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

Preview Lab → · Contrast checker → · Palette generator →

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