#A540B2#A540B2

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

Color values

HEX#A540B2
RGBrgb(165, 64, 178)
HSLhsl(293, 47%, 47%)
HSVhsv(293, 64%, 70%)
CMYKcmyk(7.3%, 64%, 0%, 30.2%)
CIE-LABlab(45.47, 57.03, -41.48)
CIE-LCHlch(45.47, 70.52, 323.97°)
OKLaboklab(55.44% 0.1529 -0.1154)
OKLCHoklch(55.44% 0.192 323)
XYZxyz(25.3855, 14.8819, 43.6462)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540B2 #4DB240
analogous
#6C40B2 #A540B2 #B24086
triadic
#A540B2 #B2A540 #40B2A5
tetradic
#A540B2 #B26C40 #4DB240 #4086B2
square
#A540B2 #B26C40 #4DB240 #4086B2
split-complementary
#A540B2 #86B240 #40B26C
monochromatic
#522058 #7B3085 #A540B2 #BD67C8 #D194D8

Accessibility & contrast

On white

5.28
#A540B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A540B2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540B2#FFFFFF#000000##FFFFFF
##A540B21.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#5070AF
Tritanopia (blue-blind)
#A75273
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a540b2;
/* rgb */ color: rgb(165, 64, 178);
/* oklch */ color: oklch(55.4% 0.192 323.0);
Tailwind
colors: {
  custom: {
    50: '#c37cc9',
    500: '#a540b2',
    950: '#000000',
  },
}
SCSS
$custom: #a540b2;
$custom-light: #c37cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a540b2",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 293.158,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55441,
    "c": 0.19157,
    "h": 323
  },
  "luminance": 0.1488
}

Semantic roles & 50–950 ramp

primary
#A540B2
secondary
#90C48A
accent
#D75160
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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