#A540DD#A540DD

#A540DD is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.2% C 0.231 H 310.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#A540DD
RGBrgb(165, 64, 221)
HSLhsl(279, 70%, 56%)
HSVhsv(279, 71%, 87%)
CMYKcmyk(25.3%, 71%, 0%, 13.3%)
CIE-LABlab(48.12, 65.57, -62.11)
CIE-LCHlch(48.12, 90.31, 316.55°)
OKLaboklab(58.18% 0.1504 -0.1758)
OKLCHoklch(58.18% 0.231 310.5)
XYZxyz(30.3991, 16.8873, 70.0508)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540DD #78DD40
analogous
#5640DD #A540DD #DD40C6
triadic
#A540DD #DDA540 #40DDA5
tetradic
#A540DD #DD5640 #78DD40 #40C6DD
square
#A540DD #DD5640 #78DD40 #40C6DD
split-complementary
#A540DD #C6DD40 #40DD56
monochromatic
#62198A #8622BE #A540DD #BD74E6 #D6A8EF

Accessibility & contrast

On white

4.80
#A540DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A540DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540DD
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540DD#FFFFFF#000000##FFFFFF
##A540DD1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE1
Deuteranopia (green-blind)
#2474DA
Tritanopia (blue-blind)
#9D638B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a540dd;
/* rgb */ color: rgb(165, 64, 221);
/* oklch */ color: oklch(58.2% 0.231 310.5);
Tailwind
colors: {
  custom: {
    50: '#c47de8',
    500: '#a540dd',
    950: '#000000',
  },
}
SCSS
$custom: #a540dd;
$custom-light: #c47de8;
$custom-dark: #000000;
JSON
{
  "hex": "#a540dd",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 278.599,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58183,
    "c": 0.23131,
    "h": 310.5
  },
  "luminance": 0.16887
}

Semantic roles & 50–950 ramp

primary
#A540DD
secondary
#B3DD9C
accent
#ED3B7A
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A540DD

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

Preview Lab → · Contrast checker → · Palette generator →

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