#A170E5#A170E5

#A170E5 is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.6% C 0.173 H 301.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#A170E5
RGBrgb(161, 112, 229)
HSLhsl(265, 69%, 67%)
HSVhsv(265, 51%, 90%)
CMYKcmyk(29.7%, 51.1%, 0%, 10.2%)
CIE-LABlab(56.90, 42.89, -52.55)
CIE-LCHlch(56.90, 67.83, 309.22°)
OKLaboklab(64.63% 0.0891 -0.148)
OKLCHoklch(64.63% 0.173 301)
XYZxyz(34.6317, 24.8224, 77.0802)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170E5 #B4E570
analogous
#707AE5 #A170E5 #DC70E5
triadic
#A170E5 #E5A170 #70E5A1
tetradic
#A170E5 #E5707A #B4E570 #70E5DC
square
#A170E5 #E5707A #B4E570 #70E5DC
split-complementary
#A170E5 #E5DC70 #7AE570
monochromatic
#6122B9 #7F3CDC #A170E5 #C3A4EE #E5D8F8

Accessibility & contrast

On white

3.52
#A170E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#A170E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170E5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170E5#FFFFFF#000000##000000
##A170E51.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4888E9
Deuteranopia (green-blind)
#5588E2
Tritanopia (blue-blind)
#9486A0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a170e5;
/* rgb */ color: rgb(161, 112, 229);
/* oklch */ color: oklch(64.6% 0.173 301.0);
Tailwind
colors: {
  custom: {
    50: '#c09aee',
    500: '#a170e5',
    950: '#000000',
  },
}
SCSS
$custom: #a170e5;
$custom-light: #c09aee;
$custom-dark: #000000;
JSON
{
  "hex": "#a170e5",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 229
  },
  "hsl": {
    "h": 265.128,
    "s": 69.231,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64625,
    "c": 0.17278,
    "h": 301
  },
  "luminance": 0.24823
}

Semantic roles & 50–950 ramp

primary
#A170E5
secondary
#DBEBC6
accent
#D11482
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A170E5

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

Preview Lab → · Contrast checker → · Palette generator →

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