#A940CB#A940CB

#A940CB is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.216 H 316.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A940CB
RGBrgb(169, 64, 203)
HSLhsl(285, 57%, 52%)
HSVhsv(285, 68%, 80%)
CMYKcmyk(16.7%, 68.5%, 0%, 20.4%)
CIE-LABlab(47.51, 62.74, -52.74)
CIE-LCHlch(47.51, 81.96, 319.95°)
OKLaboklab(57.5% 0.1572 -0.1481)
OKLCHoklch(57.5% 0.216 316.7)
XYZxyz(28.9735, 16.4148, 58.1305)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940CB #62CB40
analogous
#6440CB #A940CB #CB40A7
triadic
#A940CB #CBA940 #40CBA9
tetradic
#A940CB #CB6440 #62CB40 #40A7CB
square
#A940CB #CB6440 #62CB40 #40A7CB
split-complementary
#A940CB #A7CB40 #40CB64
monochromatic
#5D1F72 #852CA2 #A940CB #BF70D8 #D4A0E5

Accessibility & contrast

On white

4.90
#A940CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A940CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940CB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940CB#FFFFFF#000000##FFFFFF
##A940CB1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#4274C8
Tritanopia (blue-blind)
#A75B81
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a940cb;
/* rgb */ color: rgb(169, 64, 203);
/* oklch */ color: oklch(57.5% 0.216 316.7);
Tailwind
colors: {
  custom: {
    50: '#c67ddb',
    500: '#a940cb',
    950: '#000000',
  },
}
SCSS
$custom: #a940cb;
$custom-light: #c67ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a940cb",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 285.324,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57498,
    "c": 0.21597,
    "h": 316.7
  },
  "luminance": 0.16414
}

Semantic roles & 50–950 ramp

primary
#A940CB
secondary
#A4D295
accent
#E0476D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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