#A040FF#A040FF

#A040FF is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 60.1% C 0.262 H 301.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#A040FF
RGBrgb(160, 64, 255)
HSLhsl(270, 100%, 63%)
HSVhsv(270, 75%, 100%)
CMYKcmyk(37.3%, 74.9%, 0%, 0%)
CIE-LABlab(49.93, 72.06, -78.32)
CIE-LCHlch(49.93, 106.43, 312.62°)
OKLaboklab(60.1% 0.1374 -0.2236)
OKLCHoklch(60.1% 0.262 301.6)
XYZxyz(34.3762, 18.3602, 96.3212)
Luminance0.1836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A040FF #9FFF40
analogous
#4040FF #A040FF #FF40FF
triadic
#A040FF #FFA040 #40FFA0
tetradic
#A040FF #FF4040 #9FFF40 #40FFFF
square
#A040FF #FF4040 #9FFF40 #40FFFF
split-complementary
#A040FF #FFFF40 #40FF40
monochromatic
#6300C5 #8203FF #A040FF #BE7DFF #DDBAFF

Accessibility & contrast

On white

4.49
#A040FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#A040FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A040FF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A040FF#FFFFFF#000000##000000
##A040FF1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#0076FB
Tritanopia (blue-blind)
#8B729E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #a040ff;
/* rgb */ color: rgb(160, 64, 255);
/* oklch */ color: oklch(60.1% 0.262 301.6);
Tailwind
colors: {
  custom: {
    50: '#c37eff',
    500: '#a040ff',
    950: '#000000',
  },
}
SCSS
$custom: #a040ff;
$custom-light: #c37eff;
$custom-dark: #000000;
JSON
{
  "hex": "#a040ff",
  "rgb": {
    "r": 160,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 270.157,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60096,
    "c": 0.26245,
    "h": 301.6
  },
  "luminance": 0.1836
}

Semantic roles & 50–950 ramp

primary
#A040FF
secondary
#CDF0AB
accent
#E60072
background
#FCF8FF
surface
#F9EFFF
border
#D2CAD7
text
#140B18
muted
#827C86

Preview Lab

Preview with #A040FF

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

Preview Lab → · Contrast checker → · Palette generator →

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