#A540BB#A540BB

#A540BB is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.200 H 320.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A540BB
RGBrgb(165, 64, 187)
HSLhsl(289, 49%, 49%)
HSVhsv(289, 66%, 73%)
CMYKcmyk(11.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(45.98, 58.73, -45.94)
CIE-LCHlch(45.98, 74.57, 321.97°)
OKLaboklab(55.97% 0.153 -0.1284)
OKLCHoklch(55.97% 0.2 320)
XYZxyz(26.3190, 15.2552, 48.5623)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540BB #56BB40
analogous
#6840BB #A540BB #BB4094
triadic
#A540BB #BBA540 #40BBA5
tetradic
#A540BB #BB6840 #56BB40 #4094BB
square
#A540BB #BB6840 #56BB40 #4094BB
split-complementary
#A540BB #94BB40 #40BB68
monochromatic
#552160 #7D308D #A540BB #BB6CCD #D099DC

Accessibility & contrast

On white

5.18
#A540BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#A540BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540BB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540BB#FFFFFF#000000##FFFFFF
##A540BB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1966BF
Deuteranopia (green-blind)
#4A70B8
Tritanopia (blue-blind)
#A65578
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a540bb;
/* rgb */ color: rgb(165, 64, 187);
/* oklch */ color: oklch(56.0% 0.200 320.0);
Tailwind
colors: {
  custom: {
    50: '#c37cd0',
    500: '#a540bb',
    950: '#000000',
  },
}
SCSS
$custom: #a540bb;
$custom-light: #c37cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a540bb",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 289.268,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55973,
    "c": 0.19971,
    "h": 320
  },
  "luminance": 0.15254
}

Semantic roles & 50–950 ramp

primary
#A540BB
secondary
#99C88F
accent
#D94F68
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A540BB

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

Preview Lab → · Contrast checker → · Palette generator →

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