#AA5FEC#AA5FEC

#AA5FEC is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.5% C 0.208 H 305.8°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AA5FEC
RGBrgb(170, 95, 236)
HSLhsl(272, 79%, 65%)
HSVhsv(272, 60%, 93%)
CMYKcmyk(28%, 59.7%, 0%, 7.5%)
CIE-LABlab(54.85, 55.72, -59.69)
CIE-LCHlch(54.85, 81.66, 313.03°)
OKLaboklab(63.47% 0.1217 -0.1687)
OKLCHoklch(63.47% 0.208 305.8)
XYZxyz(35.8068, 22.7869, 81.8526)
Luminance0.2279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5FEC #A1EC5F
analogous
#645FEC #AA5FEC #EC5FE7
triadic
#AA5FEC #ECAA5F #5FECAA
tetradic
#AA5FEC #EC645F #A1EC5F #5FE7EC
square
#AA5FEC #EC645F #A1EC5F #5FE7EC
split-complementary
#AA5FEC #E7EC5F #5FEC64
monochromatic
#6E16BA #8D28E6 #AA5FEC #C796F2 #E4CCF9

Accessibility & contrast

On white

3.78
#AA5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#AA5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5FEC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5FEC#FFFFFF#000000##000000
##AA5FEC1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1981F0
Deuteranopia (green-blind)
#4284E9
Tritanopia (blue-blind)
#9F7B9D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #aa5fec;
/* rgb */ color: rgb(170, 95, 236);
/* oklch */ color: oklch(63.5% 0.208 305.8);
Tailwind
colors: {
  custom: {
    50: '#c790f3',
    500: '#aa5fec',
    950: '#000000',
  },
}
SCSS
$custom: #aa5fec;
$custom-light: #c790f3;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5fec",
  "rgb": {
    "r": 170,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 271.915,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63468,
    "c": 0.20799,
    "h": 305.8
  },
  "luminance": 0.22787
}

Semantic roles & 50–950 ramp

primary
#AA5FEC
secondary
#D2EBBB
accent
#DB0A6C
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #AA5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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