#A170DC#A170DC

#A170DC is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.1% C 0.162 H 303.1°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#A170DC
RGBrgb(161, 112, 220)
HSLhsl(267, 61%, 65%)
HSVhsv(267, 49%, 86%)
CMYKcmyk(26.8%, 49.1%, 0%, 13.7%)
CIE-LABlab(56.42, 40.71, -48.27)
CIE-LCHlch(56.42, 63.15, 310.14°)
OKLaboklab(64.11% 0.0883 -0.1355)
OKLCHoklch(64.11% 0.162 303.1)
XYZxyz(33.4075, 24.3327, 70.6330)
Luminance0.2433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170DC #ABDC70
analogous
#7075DC #A170DC #D770DC
triadic
#A170DC #DCA170 #70DCA1
tetradic
#A170DC #DC7075 #ABDC70 #70DCD7
square
#A170DC #DC7075 #ABDC70 #70DCD7
split-complementary
#A170DC #DCD770 #75DC70
monochromatic
#6329A8 #813FD0 #A170DC #C1A1E8 #E2D2F4

Accessibility & contrast

On white

3.58
#A170DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#A170DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170DC
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170DC#FFFFFF#000000##000000
##A170DC1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F86E0
Deuteranopia (green-blind)
#5C87D9
Tritanopia (blue-blind)
#96839C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #a170dc;
/* rgb */ color: rgb(161, 112, 220);
/* oklch */ color: oklch(64.1% 0.162 303.1);
Tailwind
colors: {
  custom: {
    50: '#bf9ae7',
    500: '#a170dc',
    950: '#000000',
  },
}
SCSS
$custom: #a170dc;
$custom-light: #bf9ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#a170dc",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 267.222,
    "s": 60.674,
    "l": 65.098
  },
  "oklch": {
    "l": 0.6411,
    "c": 0.16175,
    "h": 303.1
  },
  "luminance": 0.24333
}

Semantic roles & 50–950 ramp

primary
#A170DC
secondary
#D6E6C2
accent
#C81D7B
background
#FCF9FE
surface
#F8F2FC
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A170DC

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

Preview Lab → · Contrast checker → · Palette generator →

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