#AA51DF#AA51DF

#AA51DF is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.8% C 0.214 H 310.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AA51DF
RGBrgb(170, 81, 223)
HSLhsl(278, 69%, 60%)
HSVhsv(278, 64%, 87%)
CMYKcmyk(23.8%, 63.7%, 0%, 12.5%)
CIE-LABlab(51.56, 59.62, -57.66)
CIE-LCHlch(51.56, 82.94, 315.96°)
OKLaboklab(60.83% 0.1385 -0.1626)
OKLCHoklch(60.83% 0.214 310.4)
XYZxyz(32.8367, 19.7593, 71.8819)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51DF #86DF51
analogous
#6351DF #AA51DF #DF51CD
triadic
#AA51DF #DFAA51 #51DFAA
tetradic
#AA51DF #DF6351 #86DF51 #51CDDF
square
#AA51DF #DF6351 #86DF51 #51CDDF
split-complementary
#AA51DF #CDDF51 #51DF63
monochromatic
#6B1C99 #8F26CD #AA51DF #C385E9 #DDB8F2

Accessibility & contrast

On white

4.24
#AA51DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AA51DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51DF
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51DF#FFFFFF#000000##000000
##AA51DF1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#3F7CDC
Tritanopia (blue-blind)
#A36D91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #aa51df;
/* rgb */ color: rgb(170, 81, 223);
/* oklch */ color: oklch(60.8% 0.214 310.4);
Tailwind
colors: {
  custom: {
    50: '#c787ea',
    500: '#aa51df',
    950: '#000000',
  },
}
SCSS
$custom: #aa51df;
$custom-light: #c787ea;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51df",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 277.606,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60832,
    "c": 0.21361,
    "h": 310.4
  },
  "luminance": 0.19759
}

Semantic roles & 50–950 ramp

primary
#AA51DF
secondary
#BFE1AA
accent
#EC3C7E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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