#A540B4#A540B4

#A540B4 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.193 H 322.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#A540B4
RGBrgb(165, 64, 180)
HSLhsl(292, 48%, 48%)
HSVhsv(292, 64%, 71%)
CMYKcmyk(8.3%, 64.4%, 0%, 29.4%)
CIE-LABlab(45.58, 57.41, -42.48)
CIE-LCHlch(45.58, 71.41, 323.50°)
OKLaboklab(55.56% 0.153 -0.1183)
OKLCHoklch(55.56% 0.193 322.3)
XYZxyz(25.5878, 14.9628, 44.7115)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B4 #4FB440
analogous
#6B40B4 #A540B4 #B44089
triadic
#A540B4 #B4A540 #40B4A5
tetradic
#A540B4 #B46B40 #4FB440 #4089B4
square
#A540B4 #B46B40 #4FB440 #4089B4
split-complementary
#A540B4 #89B440 #40B46B
monochromatic
#52205A #7C3087 #A540B4 #BD68C9 #D195D9

Accessibility & contrast

On white

5.26
#A540B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#A540B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540B4
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B4#FFFFFF#000000##FFFFFF
##A540B41.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B7
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#A75374
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a540b4;
/* rgb */ color: rgb(165, 64, 180);
/* oklch */ color: oklch(55.6% 0.193 322.3);
Tailwind
colors: {
  custom: {
    50: '#c37ccb',
    500: '#a540b4',
    950: '#000000',
  },
}
SCSS
$custom: #a540b4;
$custom-light: #c37ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b4",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 292.241,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.55557,
    "c": 0.19337,
    "h": 322.3
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#A540B4
secondary
#92C58B
accent
#D75162
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540B4

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

Preview Lab → · Contrast checker → · Palette generator →

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