#AA31DB#AA31DB

#AA31DB is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.3% C 0.247 H 313.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AA31DB
RGBrgb(170, 49, 219)
HSLhsl(283, 70%, 53%)
HSVhsv(283, 78%, 86%)
CMYKcmyk(22.4%, 77.6%, 0%, 14.1%)
CIE-LABlab(46.79, 71.53, -63.08)
CIE-LCHlch(46.79, 95.37, 318.59°)
OKLaboklab(57.35% 0.1702 -0.1784)
OKLCHoklch(57.35% 0.247 313.7)
XYZxyz(30.4598, 15.8582, 68.4605)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA31DB #62DB31
analogous
#5531DB #AA31DB #DB31B7
triadic
#AA31DB #DBAA31 #31DBAA
tetradic
#AA31DB #DB5531 #62DB31 #31B7DB
square
#AA31DB #DB5531 #62DB31 #31B7DB
split-complementary
#AA31DB #B7DB31 #31DB55
monochromatic
#5E167C #861FB0 #AA31DB #BF65E4 #D599ED

Accessibility & contrast

On white

5.03
#AA31DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AA31DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA31DB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA31DB#FFFFFF#000000##FFFFFF
##AA31DB1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#1D72D7
Tritanopia (blue-blind)
#A55A86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa31db;
/* rgb */ color: rgb(170, 49, 219);
/* oklch */ color: oklch(57.3% 0.247 313.7);
Tailwind
colors: {
  custom: {
    50: '#c877e7',
    500: '#aa31db',
    950: '#000000',
  },
}
SCSS
$custom: #aa31db;
$custom-light: #c877e7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa31db",
  "rgb": {
    "r": 170,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 282.706,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57345,
    "c": 0.24655,
    "h": 313.7
  },
  "luminance": 0.15857
}

Semantic roles & 50–950 ramp

primary
#AA31DB
secondary
#A4D98F
accent
#ED3B6E
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AA31DB

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

Preview Lab → · Contrast checker → · Palette generator →

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