#AA38DB#AA38DB

#AA38DB is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.240 H 313.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AA38DB
RGBrgb(170, 56, 219)
HSLhsl(282, 69%, 54%)
HSVhsv(282, 74%, 86%)
CMYKcmyk(22.4%, 74.4%, 0%, 14.1%)
CIE-LABlab(47.61, 69.16, -61.75)
CIE-LCHlch(47.61, 92.72, 318.24°)
OKLaboklab(57.93% 0.1644 -0.1745)
OKLCHoklch(57.93% 0.24 313.3)
XYZxyz(30.7757, 16.4898, 68.5658)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA38DB #69DB38
analogous
#5938DB #AA38DB #DB38BB
triadic
#AA38DB #DBAA38 #38DBAA
tetradic
#AA38DB #DB5938 #69DB38 #38BBDB
square
#AA38DB #DB5938 #69DB38 #38BBDB
split-complementary
#AA38DB #BBDB38 #38DB59
monochromatic
#611781 #8821B5 #AA38DB #C06CE4 #D6A0EE

Accessibility & contrast

On white

4.89
#AA38DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AA38DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA38DB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA38DB#FFFFFF#000000##FFFFFF
##AA38DB1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#2773D8
Tritanopia (blue-blind)
#A55D88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa38db;
/* rgb */ color: rgb(170, 56, 219);
/* oklch */ color: oklch(57.9% 0.240 313.3);
Tailwind
colors: {
  custom: {
    50: '#c87ae7',
    500: '#aa38db',
    950: '#000000',
  },
}
SCSS
$custom: #aa38db;
$custom-light: #c87ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa38db",
  "rgb": {
    "r": 170,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 281.963,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57925,
    "c": 0.23973,
    "h": 313.3
  },
  "luminance": 0.16489
}

Semantic roles & 50–950 ramp

primary
#AA38DB
secondary
#AADA95
accent
#EC3C71
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AA38DB

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

Preview Lab → · Contrast checker → · Palette generator →

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