#A540E3#A540E3

#A540E3 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.6% C 0.237 H 309.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#A540E3
RGBrgb(165, 64, 227)
HSLhsl(277, 74%, 57%)
HSVhsv(277, 72%, 89%)
CMYKcmyk(27.3%, 71.8%, 0%, 11%)
CIE-LABlab(48.53, 66.83, -64.85)
CIE-LCHlch(48.53, 93.12, 315.86°)
OKLaboklab(58.6% 0.1495 -0.1838)
OKLCHoklch(58.6% 0.237 309.1)
XYZxyz(31.2128, 17.2128, 74.3363)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A540E3 #7EE340
analogous
#5440E3 #A540E3 #E340CF
triadic
#A540E3 #E3A540 #40E3A5
tetradic
#A540E3 #E35440 #7EE340 #40CFE3
square
#A540E3 #E35440 #7EE340 #40CFE3
split-complementary
#A540E3 #CFE340 #40E354
monochromatic
#631693 #871DC8 #A540E3 #BE75EB #D7ABF3

Accessibility & contrast

On white

4.73
#A540E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#A540E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A540E3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A540E3#FFFFFF#000000##FFFFFF
##A540E31.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#1475E0
Tritanopia (blue-blind)
#9C668E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a540e3;
/* rgb */ color: rgb(165, 64, 227);
/* oklch */ color: oklch(58.6% 0.237 309.1);
Tailwind
colors: {
  custom: {
    50: '#c57eed',
    500: '#a540e3',
    950: '#000000',
  },
}
SCSS
$custom: #a540e3;
$custom-light: #c57eed;
$custom-dark: #000000;
JSON
{
  "hex": "#a540e3",
  "rgb": {
    "r": 165,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 277.178,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58603,
    "c": 0.23695,
    "h": 309.1
  },
  "luminance": 0.17212
}

Semantic roles & 50–950 ramp

primary
#A540E3
secondary
#B7E19E
accent
#F1377E
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A540E3

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

Preview Lab → · Contrast checker → · Palette generator →

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