#AA5FD2#AA5FD2

#AA5FD2 is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.9% C 0.180 H 312.4°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AA5FD2
RGBrgb(170, 95, 210)
HSLhsl(279, 56%, 60%)
HSVhsv(279, 55%, 82%)
CMYKcmyk(19%, 54.8%, 0%, 17.6%)
CIE-LABlab(53.37, 49.92, -47.40)
CIE-LCHlch(53.37, 68.84, 316.49°)
OKLaboklab(61.9% 0.1212 -0.1327)
OKLCHoklch(61.9% 0.18 312.4)
XYZxyz(32.3006, 21.3844, 63.3863)
Luminance0.2138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5FD2 #87D25F
analogous
#705FD2 #AA5FD2 #D25FC1
triadic
#AA5FD2 #D2AA5F #5FD2AA
tetradic
#AA5FD2 #D2705F #87D25F #5FC1D2
square
#AA5FD2 #D2705F #87D25F #5FC1D2
split-complementary
#AA5FD2 #C1D25F #5FD270
monochromatic
#6B288F #8F36BE #AA5FD2 #C38FDF #DDBFED

Accessibility & contrast

On white

3.98
#AA5FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#AA5FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5FD2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5FD2#FFFFFF#000000##000000
##AA5FD21.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7CD6
Deuteranopia (green-blind)
#5981CF
Tritanopia (blue-blind)
#A67390
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #aa5fd2;
/* rgb */ color: rgb(170, 95, 210);
/* oklch */ color: oklch(61.9% 0.180 312.4);
Tailwind
colors: {
  custom: {
    50: '#c68fe0',
    500: '#aa5fd2',
    950: '#000000',
  },
}
SCSS
$custom: #aa5fd2;
$custom-light: #c68fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5fd2",
  "rgb": {
    "r": 170,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 279.13,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61904,
    "c": 0.1797,
    "h": 312.4
  },
  "luminance": 0.21384
}

Semantic roles & 50–950 ramp

primary
#AA5FD2
secondary
#C0DDB0
accent
#DF487D
background
#FCF9FD
surface
#F8F1FB
border
#D1CBD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #AA5FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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