#A940C8#A940C8

#A940C8 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.213 H 317.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A940C8
RGBrgb(169, 64, 200)
HSLhsl(286, 55%, 52%)
HSVhsv(286, 68%, 78%)
CMYKcmyk(15.5%, 68%, 0%, 21.6%)
CIE-LABlab(47.33, 62.15, -51.30)
CIE-LCHlch(47.33, 80.59, 320.46°)
OKLaboklab(57.31% 0.1573 -0.1439)
OKLCHoklch(57.31% 0.213 317.5)
XYZxyz(28.6194, 16.2731, 56.2659)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940C8 #5FC840
analogous
#6540C8 #A940C8 #C840A3
triadic
#A940C8 #C8A940 #40C8A9
tetradic
#A940C8 #C86540 #5FC840 #40A3C8
square
#A940C8 #C86540 #5FC840 #40A3C8
split-complementary
#A940C8 #A3C840 #40C865
monochromatic
#5C206E #842D9D #A940C8 #BE70D6 #D49FE3

Accessibility & contrast

On white

4.94
#A940C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#A940C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940C8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940C8#FFFFFF#000000##FFFFFF
##A940C81.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#4473C5
Tritanopia (blue-blind)
#A85A7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a940c8;
/* rgb */ color: rgb(169, 64, 200);
/* oklch */ color: oklch(57.3% 0.213 317.5);
Tailwind
colors: {
  custom: {
    50: '#c67dd9',
    500: '#a940c8',
    950: '#000000',
  },
}
SCSS
$custom: #a940c8;
$custom-light: #c67dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a940c8",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 286.324,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57309,
    "c": 0.21324,
    "h": 317.5
  },
  "luminance": 0.16272
}

Semantic roles & 50–950 ramp

primary
#A940C8
secondary
#A2D094
accent
#DF496B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A940C8

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

Preview Lab → · Contrast checker → · Palette generator →

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