#A940E1#A940E1

#A940E1 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 59.0% C 0.236 H 311.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#A940E1
RGBrgb(169, 64, 225)
HSLhsl(279, 73%, 57%)
HSVhsv(279, 72%, 88%)
CMYKcmyk(24.9%, 71.6%, 0%, 11.8%)
CIE-LABlab(48.93, 67.17, -63.04)
CIE-LCHlch(48.93, 92.12, 316.82°)
OKLaboklab(58.96% 0.1549 -0.1784)
OKLCHoklch(58.96% 0.236 311)
XYZxyz(31.7836, 17.5388, 72.9306)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940E1 #78E140
analogous
#5840E1 #A940E1 #E140C9
triadic
#A940E1 #E1A940 #40E1A9
tetradic
#A940E1 #E15840 #78E140 #40C9E1
square
#A940E1 #E15840 #78E140 #40C9E1
split-complementary
#A940E1 #C9E140 #40E158
monochromatic
#661790 #8B1FC5 #A940E1 #C175E9 #D9AAF2

Accessibility & contrast

On white

4.66
#A940E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#A940E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A940E1
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940E1#FFFFFF#000000##FFFFFF
##A940E11.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE6
Deuteranopia (green-blind)
#2576DE
Tritanopia (blue-blind)
#A2648D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a940e1;
/* rgb */ color: rgb(169, 64, 225);
/* oklch */ color: oklch(59.0% 0.236 311.0);
Tailwind
colors: {
  custom: {
    50: '#c77eeb',
    500: '#a940e1',
    950: '#000000',
  },
}
SCSS
$custom: #a940e1;
$custom-light: #c77eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#a940e1",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 279.13,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58961,
    "c": 0.23623,
    "h": 311
  },
  "luminance": 0.17538
}

Semantic roles & 50–950 ramp

primary
#A940E1
secondary
#B4DF9D
accent
#F03878
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A940E1

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

Preview Lab → · Contrast checker → · Palette generator →

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