#A540BA#A540BA

#A540BA is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.199 H 320.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#A540BA
RGBrgb(165, 64, 186)
HSLhsl(290, 49%, 49%)
HSVhsv(290, 66%, 73%)
CMYKcmyk(11.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(45.92, 58.54, -45.45)
CIE-LCHlch(45.92, 74.11, 322.18°)
OKLaboklab(55.91% 0.153 -0.1269)
OKLCHoklch(55.91% 0.199 320.3)
XYZxyz(26.2123, 15.2126, 48.0005)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540BA #55BA40
analogous
#6840BA #A540BA #BA4092
triadic
#A540BA #BAA540 #40BAA5
tetradic
#A540BA #BA6840 #55BA40 #4092BA
square
#A540BA #BA6840 #55BA40 #4092BA
split-complementary
#A540BA #92BA40 #40BA68
monochromatic
#54215F #7D308C #A540BA #BB6BCC #D099DC

Accessibility & contrast

On white

5.20
#A540BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A540BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540BA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540BA#FFFFFF#000000##FFFFFF
##A540BA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B66BE
Deuteranopia (green-blind)
#4B70B7
Tritanopia (blue-blind)
#A65578
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a540ba;
/* rgb */ color: rgb(165, 64, 186);
/* oklch */ color: oklch(55.9% 0.199 320.3);
Tailwind
colors: {
  custom: {
    50: '#c37ccf',
    500: '#a540ba',
    950: '#000000',
  },
}
SCSS
$custom: #a540ba;
$custom-light: #c37ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#a540ba",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 289.672,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55913,
    "c": 0.19879,
    "h": 320.3
  },
  "luminance": 0.15211
}

Semantic roles & 50–950 ramp

primary
#A540BA
secondary
#98C88E
accent
#D84F67
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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