#A172CA#A172CA

#A172CA is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.5% C 0.136 H 307.6°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#A172CA
RGBrgb(161, 114, 202)
HSLhsl(272, 45%, 62%)
HSVhsv(272, 44%, 79%)
CMYKcmyk(20.3%, 43.6%, 0%, 20.8%)
CIE-LABlab(55.96, 35.36, -38.81)
CIE-LCHlch(55.96, 52.51, 312.34°)
OKLaboklab(63.48% 0.0831 -0.108)
OKLCHoklch(63.48% 0.136 307.6)
XYZxyz(31.3738, 23.8763, 58.8214)
Luminance0.2388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172CA #9BCA72
analogous
#7572CA #A172CA #CA72C7
triadic
#A172CA #CAA172 #72CAA1
tetradic
#A172CA #CA7572 #9BCA72 #72C7CA
square
#A172CA #CA7572 #9BCA72 #72C7CA
split-complementary
#A172CA #C7CA72 #72CA75
monochromatic
#64358D #8346B9 #A172CA #BF9EDB #DCCBEB

Accessibility & contrast

On white

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

On black

5.78
#A172CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172CA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172CA#FFFFFF#000000##000000
##A172CA1.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D84CD
Deuteranopia (green-blind)
#6987C8
Tritanopia (blue-blind)
#9B8094
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a172ca;
/* rgb */ color: rgb(161, 114, 202);
/* oklch */ color: oklch(63.5% 0.136 307.6);
Tailwind
colors: {
  custom: {
    50: '#be9bda',
    500: '#a172ca',
    950: '#000000',
  },
}
SCSS
$custom: #a172ca;
$custom-light: #be9bda;
$custom-dark: #000000;
JSON
{
  "hex": "#a172ca",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 272.045,
    "s": 45.361,
    "l": 61.961
  },
  "oklch": {
    "l": 0.63475,
    "c": 0.1363,
    "h": 307.6
  },
  "luminance": 0.23876
}

Semantic roles & 50–950 ramp

primary
#A172CA
secondary
#CBDCBC
accent
#B92D6E
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A172CA

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

Preview Lab → · Contrast checker → · Palette generator →

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