#A170D5#A170D5

#A170D5 is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.7% C 0.153 H 304.8°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#A170D5
RGBrgb(161, 112, 213)
HSLhsl(269, 55%, 64%)
HSVhsv(269, 47%, 84%)
CMYKcmyk(24.4%, 47.4%, 0%, 16.5%)
CIE-LABlab(56.06, 39.04, -44.90)
CIE-LCHlch(56.06, 59.50, 311.01°)
OKLaboklab(63.72% 0.0875 -0.1257)
OKLCHoklch(63.72% 0.153 304.8)
XYZxyz(32.4998, 23.9697, 65.8523)
Luminance0.2397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170D5 #A4D570
analogous
#7071D5 #A170D5 #D370D5
triadic
#A170D5 #D5A170 #70D5A1
tetradic
#A170D5 #D57071 #A4D570 #70D5D3
square
#A170D5 #D57071 #A4D570 #70D5D3
split-complementary
#A170D5 #D5D370 #71D570
monochromatic
#642E9D #8241C7 #A170D5 #C09FE3 #DFCFF1

Accessibility & contrast

On white

3.62
#A170D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#A170D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170D5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170D5#FFFFFF#000000##000000
##A170D51.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5485D9
Deuteranopia (green-blind)
#6187D2
Tritanopia (blue-blind)
#988198
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a170d5;
/* rgb */ color: rgb(161, 112, 213);
/* oklch */ color: oklch(63.7% 0.153 304.8);
Tailwind
colors: {
  custom: {
    50: '#bf9ae2',
    500: '#a170d5',
    950: '#000000',
  },
}
SCSS
$custom: #a170d5;
$custom-light: #bf9ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#a170d5",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 213
  },
  "hsl": {
    "h": 269.109,
    "s": 54.595,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63722,
    "c": 0.15315,
    "h": 304.8
  },
  "luminance": 0.2397
}

Semantic roles & 50–950 ramp

primary
#A170D5
secondary
#D1E2BF
accent
#C22375
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A170D5

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

Preview Lab → · Contrast checker → · Palette generator →

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