#A172CB#A172CB

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

Color values

HEX#A172CB
RGBrgb(161, 114, 203)
HSLhsl(272, 46%, 62%)
HSVhsv(272, 44%, 80%)
CMYKcmyk(20.7%, 43.8%, 0%, 20.4%)
CIE-LABlab(56.01, 35.59, -39.31)
CIE-LCHlch(56.01, 53.03, 312.16°)
OKLaboklab(63.53% 0.0833 -0.1095)
OKLCHoklch(63.53% 0.138 307.3)
XYZxyz(31.4926, 23.9238, 59.4470)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172CB #9CCB72
analogous
#7472CB #A172CB #CB72C9
triadic
#A172CB #CBA172 #72CBA1
tetradic
#A172CB #CB7472 #9CCB72 #72C9CB
square
#A172CB #CB7472 #9CCB72 #72C9CB
split-complementary
#A172CB #C9CB72 #72CB74
monochromatic
#64348E #8345BB #A172CB #BF9FDB #DDCBEC

Accessibility & contrast

On white

3.63
#A172CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##A172CB#FFFFFF#000000##000000
##A172CB1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D84CE
Deuteranopia (green-blind)
#6887C9
Tritanopia (blue-blind)
#9B8095
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a172cb;
/* rgb */ color: rgb(161, 114, 203);
/* oklch */ color: oklch(63.5% 0.138 307.3);
Tailwind
colors: {
  custom: {
    50: '#be9bdb',
    500: '#a172cb',
    950: '#000000',
  },
}
SCSS
$custom: #a172cb;
$custom-light: #be9bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#a172cb",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 271.685,
    "s": 46.114,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63527,
    "c": 0.13753,
    "h": 307.3
  },
  "luminance": 0.23923
}

Semantic roles & 50–950 ramp

primary
#A172CB
secondary
#CBDDBC
accent
#B92C6F
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A172CB

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

Preview Lab → · Contrast checker → · Palette generator →

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