#A540BF#A540BF

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

Color values

HEX#A540BF
RGBrgb(165, 64, 191)
HSLhsl(288, 50%, 50%)
HSVhsv(288, 66%, 75%)
CMYKcmyk(13.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(46.22, 59.51, -47.90)
CIE-LCHlch(46.22, 76.39, 321.17°)
OKLaboklab(56.22% 0.1529 -0.1341)
OKLCHoklch(56.22% 0.203 318.7)
XYZxyz(26.7532, 15.4289, 50.8490)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540BF #5ABF40
analogous
#6640BF #A540BF #BF4099
triadic
#A540BF #BFA540 #40BFA5
tetradic
#A540BF #BF6640 #5ABF40 #4099BF
square
#A540BF #BF6640 #5ABF40 #4099BF
split-complementary
#A540BF #99BF40 #40BF66
monochromatic
#562163 #7D3191 #A540BF #BB6ECE #D09CDE

Accessibility & contrast

On white

5.14
#A540BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#A540BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540BF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540BF#FFFFFF#000000##FFFFFF
##A540BF1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E67C3
Deuteranopia (green-blind)
#4771BC
Tritanopia (blue-blind)
#A5577A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a540bf;
/* rgb */ color: rgb(165, 64, 191);
/* oklch */ color: oklch(56.2% 0.203 318.7);
Tailwind
colors: {
  custom: {
    50: '#c37cd3',
    500: '#a540bf',
    950: '#000000',
  },
}
SCSS
$custom: #a540bf;
$custom-light: #c37cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#a540bf",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 287.717,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.56217,
    "c": 0.20337,
    "h": 318.7
  },
  "luminance": 0.15428
}

Semantic roles & 50–950 ramp

primary
#A540BF
secondary
#9DCA91
accent
#D94E6B
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A540BF

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

Preview Lab → · Contrast checker → · Palette generator →

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