#A540BE#A540BE

#A540BE is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.2% C 0.202 H 319.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#A540BE
RGBrgb(165, 64, 190)
HSLhsl(288, 50%, 50%)
HSVhsv(288, 66%, 75%)
CMYKcmyk(13.2%, 66.3%, 0%, 25.5%)
CIE-LABlab(46.16, 59.31, -47.41)
CIE-LCHlch(46.16, 75.93, 321.36°)
OKLaboklab(56.16% 0.1529 -0.1327)
OKLCHoklch(56.16% 0.202 319.1)
XYZxyz(26.6435, 15.3850, 50.2714)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540BE #59BE40
analogous
#6640BE #A540BE #BE4098
triadic
#A540BE #BEA540 #40BEA5
tetradic
#A540BE #BE6640 #59BE40 #4098BE
square
#A540BE #BE6640 #59BE40 #4098BE
split-complementary
#A540BE #98BE40 #40BE66
monochromatic
#552162 #7D3190 #A540BE #BB6DCE #D09BDD

Accessibility & contrast

On white

5.15
#A540BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#A540BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540BE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540BE#FFFFFF#000000##FFFFFF
##A540BE1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1167C2
Deuteranopia (green-blind)
#4871BB
Tritanopia (blue-blind)
#A5577A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a540be;
/* rgb */ color: rgb(165, 64, 190);
/* oklch */ color: oklch(56.2% 0.202 319.1);
Tailwind
colors: {
  custom: {
    50: '#c37cd2',
    500: '#a540be',
    950: '#000000',
  },
}
SCSS
$custom: #a540be;
$custom-light: #c37cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#a540be",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 288.095,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.20246,
    "h": 319.1
  },
  "luminance": 0.15384
}

Semantic roles & 50–950 ramp

primary
#A540BE
secondary
#9CC990
accent
#D94F6A
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A540BE

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

Preview Lab → · Contrast checker → · Palette generator →

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