#A170D2#A170D2

#A170D2 is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.6% C 0.149 H 305.6°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#A170D2
RGBrgb(161, 112, 210)
HSLhsl(270, 52%, 63%)
HSVhsv(270, 47%, 82%)
CMYKcmyk(23.3%, 46.7%, 0%, 17.6%)
CIE-LABlab(55.91, 38.34, -43.44)
CIE-LCHlch(55.91, 57.94, 311.43°)
OKLaboklab(63.56% 0.0871 -0.1215)
OKLCHoklch(63.56% 0.149 305.6)
XYZxyz(32.1226, 23.8188, 63.8655)
Luminance0.2382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170D2 #A1D270
analogous
#7070D2 #A170D2 #D270D2
triadic
#A170D2 #D2A170 #70D2A1
tetradic
#A170D2 #D27070 #A1D270 #70D2D2
square
#A170D2 #D27070 #A1D270 #70D2D2
split-complementary
#A170D2 #D2D270 #70D270
monochromatic
#643098 #8241C3 #A170D2 #C09FE1 #DECDEF

Accessibility & contrast

On white

3.64
#A170D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#A170D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170D2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170D2#FFFFFF#000000##000000
##A170D21.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5684D5
Deuteranopia (green-blind)
#6286CF
Tritanopia (blue-blind)
#998197
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a170d2;
/* rgb */ color: rgb(161, 112, 210);
/* oklch */ color: oklch(63.6% 0.149 305.6);
Tailwind
colors: {
  custom: {
    50: '#bf9ae0',
    500: '#a170d2',
    950: '#000000',
  },
}
SCSS
$custom: #a170d2;
$custom-light: #bf9ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#a170d2",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 210
  },
  "hsl": {
    "h": 270,
    "s": 52.128,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6356,
    "c": 0.14946,
    "h": 305.6
  },
  "luminance": 0.23819
}

Semantic roles & 50–950 ramp

primary
#A170D2
secondary
#CFE0BD
accent
#C02673
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A170D2

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

Preview Lab → · Contrast checker → · Palette generator →

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