#A17FF2#A17FF2

#A17FF2 is a light, vivid violet. Relative luminance 0.292; OKLCH L 67.9% C 0.166 H 295.2°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#A17FF2
RGBrgb(161, 127, 242)
HSLhsl(258, 82%, 72%)
HSVhsv(258, 48%, 95%)
CMYKcmyk(33.5%, 47.5%, 0%, 5.1%)
CIE-LABlab(60.93, 37.76, -53.38)
CIE-LCHlch(60.93, 65.38, 305.27°)
OKLaboklab(67.85% 0.0709 -0.1505)
OKLCHoklch(67.85% 0.166 295.2)
XYZxyz(38.3103, 29.1660, 87.5984)
Luminance0.2917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A17FF2 #D0F27F
analogous
#7F97F2 #A17FF2 #DA7FF2
triadic
#A17FF2 #F2A17F #7FF2A1
tetradic
#A17FF2 #F27F97 #D0F27F #7FF2DA
square
#A17FF2 #F27F97 #D0F27F #7FF2DA
split-complementary
#A17FF2 #F2DA7F #97F27F
monochromatic
#5217E0 #7847EC #A17FF2 #CAB7F8 #EBE3FC

Accessibility & contrast

On white

3.07
#A17FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.83
#A17FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A17FF2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A17FF2#FFFFFF#000000##000000
##A17FF21.003.076.836.83
#FFFFFF3.071.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5794F6
Deuteranopia (green-blind)
#5E91EF
Tritanopia (blue-blind)
#8E95AD
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #a17ff2;
/* rgb */ color: rgb(161, 127, 242);
/* oklch */ color: oklch(67.9% 0.166 295.2);
Tailwind
colors: {
  custom: {
    50: '#c0a4f7',
    500: '#a17ff2',
    950: '#000000',
  },
}
SCSS
$custom: #a17ff2;
$custom-light: #c0a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a17ff2",
  "rgb": {
    "r": 161,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 257.739,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.67854,
    "c": 0.16635,
    "h": 295.2
  },
  "luminance": 0.29167
}

Semantic roles & 50–950 ramp

primary
#A17FF2
secondary
#EBF4D7
accent
#DE089F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A17FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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