#A940E3#A940E3

#A940E3 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 59.1% C 0.238 H 310.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#A940E3
RGBrgb(169, 64, 227)
HSLhsl(279, 74%, 57%)
HSVhsv(279, 72%, 89%)
CMYKcmyk(25.6%, 71.8%, 0%, 11%)
CIE-LABlab(49.07, 67.58, -63.95)
CIE-LCHlch(49.07, 93.05, 316.58°)
OKLaboklab(59.1% 0.1546 -0.1811)
OKLCHoklch(59.1% 0.238 310.5)
XYZxyz(32.0580, 17.6486, 74.3759)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940E3 #7AE340
analogous
#5840E3 #A940E3 #E340CC
triadic
#A940E3 #E3A940 #40E3A9
tetradic
#A940E3 #E35840 #7AE340 #40CCE3
square
#A940E3 #E35840 #7AE340 #40CCE3
split-complementary
#A940E3 #CCE340 #40E358
monochromatic
#661693 #8C1DC8 #A940E3 #C175EB #D9ABF3

Accessibility & contrast

On white

4.64
#A940E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#A940E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A940E3
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940E3#FFFFFF#000000##FFFFFF
##A940E31.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E8
Deuteranopia (green-blind)
#2076E0
Tritanopia (blue-blind)
#A1658E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a940e3;
/* rgb */ color: rgb(169, 64, 227);
/* oklch */ color: oklch(59.1% 0.238 310.5);
Tailwind
colors: {
  custom: {
    50: '#c77eed',
    500: '#a940e3',
    950: '#000000',
  },
}
SCSS
$custom: #a940e3;
$custom-light: #c77eed;
$custom-dark: #000000;
JSON
{
  "hex": "#a940e3",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 278.65,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59099,
    "c": 0.23809,
    "h": 310.5
  },
  "luminance": 0.17648
}

Semantic roles & 50–950 ramp

primary
#A940E3
secondary
#B6E19E
accent
#F13779
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A940E3

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

Preview Lab → · Contrast checker → · Palette generator →

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