#AA7FF2#AA7FF2

#AA7FF2 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.7% C 0.167 H 299.2°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#AA7FF2
RGBrgb(170, 127, 242)
HSLhsl(262, 82%, 72%)
HSVhsv(262, 48%, 95%)
CMYKcmyk(29.8%, 47.5%, 0%, 5.1%)
CIE-LABlab(61.77, 40.07, -51.99)
CIE-LCHlch(61.77, 65.64, 307.62°)
OKLaboklab(68.68% 0.0817 -0.1462)
OKLCHoklch(68.68% 0.167 299.2)
XYZxyz(40.1902, 30.1353, 87.6865)
Luminance0.3014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7FF2 #C7F27F
analogous
#7F8DF2 #AA7FF2 #E47FF2
triadic
#AA7FF2 #F2AA7F #7FF2AA
tetradic
#AA7FF2 #F27F8D #C7F27F #7FF2E4
square
#AA7FF2 #F27F8D #C7F27F #7FF2E4
split-complementary
#AA7FF2 #F2E47F #8DF27F
monochromatic
#6217E0 #8547EC #AA7FF2 #CFB7F8 #EDE3FC

Accessibility & contrast

On white

2.99
#AA7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#AA7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA7FF2
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7FF2#FFFFFF#000000##000000
##AA7FF21.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A95F6
Deuteranopia (green-blind)
#6494EF
Tritanopia (blue-blind)
#9B94AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #aa7ff2;
/* rgb */ color: rgb(170, 127, 242);
/* oklch */ color: oklch(68.7% 0.167 299.2);
Tailwind
colors: {
  custom: {
    50: '#c6a5f7',
    500: '#aa7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #aa7ff2;
$custom-light: #c6a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7ff2",
  "rgb": {
    "r": 170,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 262.435,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68683,
    "c": 0.16748,
    "h": 299.2
  },
  "luminance": 0.30136
}

Semantic roles & 50–950 ramp

primary
#AA7FF2
secondary
#E9F4D7
accent
#DE088E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AA7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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