#AA5FEB#AA5FEB

#AA5FEB is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.4% C 0.207 H 306.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AA5FEB
RGBrgb(170, 95, 235)
HSLhsl(272, 78%, 65%)
HSVhsv(272, 60%, 92%)
CMYKcmyk(27.7%, 59.6%, 0%, 7.8%)
CIE-LABlab(54.79, 55.49, -59.23)
CIE-LCHlch(54.79, 81.16, 313.13°)
OKLaboklab(63.41% 0.1217 -0.1673)
OKLCHoklch(63.41% 0.207 306)
XYZxyz(35.6620, 22.7289, 81.0896)
Luminance0.2273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5FEB #A0EB5F
analogous
#645FEB #AA5FEB #EB5FE6
triadic
#AA5FEB #EBAA5F #5FEBAA
tetradic
#AA5FEB #EB645F #A0EB5F #5FE6EB
square
#AA5FEB #EB645F #A0EB5F #5FE6EB
split-complementary
#AA5FEB #E6EB5F #5FEB64
monochromatic
#6E17B9 #8D29E4 #AA5FEB #C795F2 #E4CCF9

Accessibility & contrast

On white

3.79
#AA5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#AA5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5FEB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5FEB#FFFFFF#000000##000000
##AA5FEB1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C81EF
Deuteranopia (green-blind)
#4384E8
Tritanopia (blue-blind)
#9F7B9C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #aa5feb;
/* rgb */ color: rgb(170, 95, 235);
/* oklch */ color: oklch(63.4% 0.207 306.0);
Tailwind
colors: {
  custom: {
    50: '#c790f2',
    500: '#aa5feb',
    950: '#000000',
  },
}
SCSS
$custom: #aa5feb;
$custom-light: #c790f2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5feb",
  "rgb": {
    "r": 170,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 272.143,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63405,
    "c": 0.2069,
    "h": 306
  },
  "luminance": 0.22729
}

Semantic roles & 50–950 ramp

primary
#AA5FEB
secondary
#D1EBBB
accent
#DA0B6B
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #AA5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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