#A170F7#A170F7

#A170F7 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.7% C 0.195 H 297.5°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#A170F7
RGBrgb(161, 112, 247)
HSLhsl(262, 89%, 70%)
HSVhsv(262, 55%, 97%)
CMYKcmyk(34.8%, 54.7%, 0%, 3.1%)
CIE-LABlab(57.92, 47.35, -60.94)
CIE-LCHlch(57.92, 77.18, 307.85°)
OKLaboklab(65.71% 0.09 -0.1726)
OKLCHoklch(65.71% 0.195 297.5)
XYZxyz(37.2764, 25.8803, 91.0091)
Luminance0.2588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170F7 #C6F770
analogous
#7082F7 #A170F7 #E570F7
triadic
#A170F7 #F7A170 #70F7A1
tetradic
#A170F7 #F77082 #C6F770 #70F7E5
square
#A170F7 #F77082 #C6F770 #70F7E5
split-complementary
#A170F7 #F7E570 #82F770
monochromatic
#590DE0 #7B36F4 #A170F7 #C7AAFA #ECE2FD

Accessibility & contrast

On white

3.40
#A170F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#A170F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170F7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170F7#FFFFFF#000000##000000
##A170F71.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#348CFC
Deuteranopia (green-blind)
#448AF4
Tritanopia (blue-blind)
#8E8BA9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a170f7;
/* rgb */ color: rgb(161, 112, 247);
/* oklch */ color: oklch(65.7% 0.195 297.5);
Tailwind
colors: {
  custom: {
    50: '#c19afa',
    500: '#a170f7',
    950: '#000000',
  },
}
SCSS
$custom: #a170f7;
$custom-light: #c19afa;
$custom-dark: #000000;
JSON
{
  "hex": "#a170f7",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 247
  },
  "hsl": {
    "h": 261.778,
    "s": 89.404,
    "l": 70.392
  },
  "oklch": {
    "l": 0.6571,
    "c": 0.19467,
    "h": 297.5
  },
  "luminance": 0.25881
}

Semantic roles & 50–950 ramp

primary
#A170F7
secondary
#E6F4CF
accent
#E60092
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A170F7

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

Preview Lab → · Contrast checker → · Palette generator →

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