#A540B3#A540B3

#A540B3 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.192 H 322.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#A540B3
RGBrgb(165, 64, 179)
HSLhsl(293, 47%, 48%)
HSVhsv(293, 64%, 70%)
CMYKcmyk(7.8%, 64.2%, 0%, 29.8%)
CIE-LABlab(45.53, 57.22, -41.98)
CIE-LCHlch(45.53, 70.97, 323.73°)
OKLaboklab(55.5% 0.153 -0.1168)
OKLCHoklch(55.5% 0.192 322.6)
XYZxyz(25.4863, 14.9222, 44.1769)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B3 #4EB340
analogous
#6C40B3 #A540B3 #B34087
triadic
#A540B3 #B3A540 #40B3A5
tetradic
#A540B3 #B36C40 #4EB340 #4087B3
square
#A540B3 #B36C40 #4EB340 #4087B3
split-complementary
#A540B3 #87B340 #40B36C
monochromatic
#522059 #7B3086 #A540B3 #BD67C9 #D194D9

Accessibility & contrast

On white

5.27
#A540B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#A540B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540B3
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B3#FFFFFF#000000##FFFFFF
##A540B31.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B6
Deuteranopia (green-blind)
#5070B0
Tritanopia (blue-blind)
#A75274
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a540b3;
/* rgb */ color: rgb(165, 64, 179);
/* oklch */ color: oklch(55.5% 0.192 322.6);
Tailwind
colors: {
  custom: {
    50: '#c37cca',
    500: '#a540b3',
    950: '#000000',
  },
}
SCSS
$custom: #a540b3;
$custom-light: #c37cca;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b3",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 292.696,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55499,
    "c": 0.19247,
    "h": 322.6
  },
  "luminance": 0.14921
}

Semantic roles & 50–950 ramp

primary
#A540B3
secondary
#91C48A
accent
#D75161
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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