#A172CD#A172CD

#A172CD is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.6% C 0.140 H 306.7°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#A172CD
RGBrgb(161, 114, 205)
HSLhsl(271, 48%, 63%)
HSVhsv(271, 44%, 80%)
CMYKcmyk(21.5%, 44.4%, 0%, 19.6%)
CIE-LABlab(56.11, 36.06, -40.29)
CIE-LCHlch(56.11, 54.07, 311.83°)
OKLaboklab(63.63% 0.0836 -0.1123)
OKLCHoklch(63.63% 0.14 306.7)
XYZxyz(31.7325, 24.0197, 60.7103)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172CD #9ECD72
analogous
#7372CD #A172CD #CD72CC
triadic
#A172CD #CDA172 #72CDA1
tetradic
#A172CD #CD7372 #9ECD72 #72CCCD
square
#A172CD #CD7372 #9ECD72 #72CCCD
split-complementary
#A172CD #CCCD72 #72CD73
monochromatic
#643391 #8345BD #A172CD #BF9FDD #DDCCED

Accessibility & contrast

On white

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

On black

5.80
#A172CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172CD
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172CD#FFFFFF#000000##000000
##A172CD1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C85D0
Deuteranopia (green-blind)
#6787CB
Tritanopia (blue-blind)
#9A8196
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a172cd;
/* rgb */ color: rgb(161, 114, 205);
/* oklch */ color: oklch(63.6% 0.140 306.7);
Tailwind
colors: {
  custom: {
    50: '#be9bdc',
    500: '#a172cd',
    950: '#000000',
  },
}
SCSS
$custom: #a172cd;
$custom-light: #be9bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#a172cd",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 270.989,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6363,
    "c": 0.14,
    "h": 306.7
  },
  "luminance": 0.24019
}

Semantic roles & 50–950 ramp

primary
#A172CD
secondary
#CDDEBD
accent
#BB2B70
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A172CD

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

Preview Lab → · Contrast checker → · Palette generator →

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