#A040E8#A040E8

#A040E8 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.4% C 0.240 H 306.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A040E8
RGBrgb(160, 64, 232)
HSLhsl(274, 79%, 58%)
HSVhsv(274, 72%, 91%)
CMYKcmyk(31%, 72.4%, 0%, 9%)
CIE-LABlab(48.22, 66.97, -68.21)
CIE-LCHlch(48.22, 95.60, 314.47°)
OKLaboklab(58.36% 0.1422 -0.1939)
OKLCHoklch(58.36% 0.24 306.3)
XYZxyz(30.8929, 16.9669, 77.9757)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040E8 #88E840
analogous
#4C40E8 #A040E8 #E840DC
triadic
#A040E8 #E8A040 #40E8A0
tetradic
#A040E8 #E84C40 #88E840 #40DCE8
square
#A040E8 #E84C40 #88E840 #40DCE8
split-complementary
#A040E8 #DCE840 #40E84C
monochromatic
#61139B #8319D2 #A040E8 #BB77EF #D6ADF5

Accessibility & contrast

On white

4.78
#A040E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#A040E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A040E8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040E8#FFFFFF#000000##FFFFFF
##A040E81.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0073E5
Tritanopia (blue-blind)
#936891
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a040e8;
/* rgb */ color: rgb(160, 64, 232);
/* oklch */ color: oklch(58.4% 0.240 306.3);
Tailwind
colors: {
  custom: {
    50: '#c27df0',
    500: '#a040e8',
    950: '#000000',
  },
}
SCSS
$custom: #a040e8;
$custom-light: #c27df0;
$custom-dark: #000000;
JSON
{
  "hex": "#a040e8",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 274.286,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58356,
    "c": 0.24042,
    "h": 306.3
  },
  "luminance": 0.16967
}

Semantic roles & 50–950 ramp

primary
#A040E8
secondary
#BDE3A0
accent
#F53386
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #A040E8

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

Preview Lab → · Contrast checker → · Palette generator →

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