#A040E3#A040E3

#A040E3 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 58.0% C 0.236 H 307.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A040E3
RGBrgb(160, 64, 227)
HSLhsl(275, 74%, 57%)
HSVhsv(275, 72%, 89%)
CMYKcmyk(29.5%, 71.8%, 0%, 11%)
CIE-LABlab(47.86, 65.89, -65.96)
CIE-LCHlch(47.86, 93.23, 314.97°)
OKLaboklab(57.99% 0.143 -0.1872)
OKLCHoklch(57.99% 0.236 307.4)
XYZxyz(30.1928, 16.6868, 74.2885)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040E3 #83E340
analogous
#4E40E3 #A040E3 #E340D5
triadic
#A040E3 #E3A040 #40E3A0
tetradic
#A040E3 #E34E40 #83E340 #40D5E3
square
#A040E3 #E34E40 #83E340 #40D5E3
split-complementary
#A040E3 #D5E340 #40E34E
monochromatic
#5F1693 #821DC8 #A040E3 #BB75EB #D5ABF3

Accessibility & contrast

On white

4.84
#A040E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#A040E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040E3
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040E3#FFFFFF#000000##FFFFFF
##A040E31.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#95668E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a040e3;
/* rgb */ color: rgb(160, 64, 227);
/* oklch */ color: oklch(58.0% 0.236 307.4);
Tailwind
colors: {
  custom: {
    50: '#c17ded',
    500: '#a040e3',
    950: '#000000',
  },
}
SCSS
$custom: #a040e3;
$custom-light: #c17ded;
$custom-dark: #000000;
JSON
{
  "hex": "#a040e3",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 275.337,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57993,
    "c": 0.23562,
    "h": 307.4
  },
  "luminance": 0.16686
}

Semantic roles & 50–950 ramp

primary
#A040E3
secondary
#BAE19E
accent
#F13783
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A040E3

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

Preview Lab → · Contrast checker → · Palette generator →

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