#AA40DB#AA40DB

#AA40DB is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.231 H 312.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AA40DB
RGBrgb(170, 64, 219)
HSLhsl(281, 68%, 55%)
HSVhsv(281, 71%, 86%)
CMYKcmyk(22.4%, 70.8%, 0%, 14.1%)
CIE-LABlab(48.67, 66.14, -60.04)
CIE-LCHlch(48.67, 89.33, 317.77°)
OKLaboklab(58.68% 0.1569 -0.1695)
OKLCHoklch(58.68% 0.231 312.8)
XYZxyz(31.1949, 17.3282, 68.7055)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA40DB #71DB40
analogous
#5C40DB #AA40DB #DB40BF
triadic
#AA40DB #DBAA40 #40DBAA
tetradic
#AA40DB #DB5C40 #71DB40 #40BFDB
square
#AA40DB #DB5C40 #71DB40 #40BFDB
split-complementary
#AA40DB #BFDB40 #40DB5C
monochromatic
#641987 #8B23BB #AA40DB #C173E5 #D8A7EE

Accessibility & contrast

On white

4.70
#AA40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AA40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA40DB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA40DB#FFFFFF#000000##FFFFFF
##AA40DB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#3176D8
Tritanopia (blue-blind)
#A5618A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #aa40db;
/* rgb */ color: rgb(170, 64, 219);
/* oklch */ color: oklch(58.7% 0.231 312.8);
Tailwind
colors: {
  custom: {
    50: '#c87ee7',
    500: '#aa40db',
    950: '#000000',
  },
}
SCSS
$custom: #aa40db;
$custom-light: #c87ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa40db",
  "rgb": {
    "r": 170,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 281.032,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58677,
    "c": 0.23101,
    "h": 312.8
  },
  "luminance": 0.17327
}

Semantic roles & 50–950 ramp

primary
#AA40DB
secondary
#B0DC9B
accent
#EB3D74
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AA40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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