#A172BC#A172BC

#A172BC is a light, moderate violet. Relative luminance 0.232; OKLCH L 62.8% C 0.119 H 312.5°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#A172BC
RGBrgb(161, 114, 188)
HSLhsl(278, 36%, 59%)
HSVhsv(278, 39%, 74%)
CMYKcmyk(14.4%, 39.4%, 0%, 26.3%)
CIE-LABlab(55.32, 32.22, -31.83)
CIE-LCHlch(55.32, 45.29, 315.35°)
OKLaboklab(62.78% 0.0804 -0.0879)
OKLCHoklch(62.78% 0.119 312.5)
XYZxyz(29.7908, 23.2431, 50.4842)
Luminance0.2324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172BC #8DBC72
analogous
#7C72BC #A172BC #BC72B2
triadic
#A172BC #BCA172 #72BCA1
tetradic
#A172BC #BC7C72 #8DBC72 #72B2BC
square
#A172BC #BC7C72 #8DBC72 #72B2BC
split-complementary
#A172BC #B2BC72 #72BC7C
monochromatic
#623A7A #844EA3 #A172BC #BD9BD0 #D8C5E3

Accessibility & contrast

On white

3.72
#A172BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#A172BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172BC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172BC#FFFFFF#000000##000000
##A172BC1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6482BF
Deuteranopia (green-blind)
#7086BA
Tritanopia (blue-blind)
#9F7C8E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a172bc;
/* rgb */ color: rgb(161, 114, 188);
/* oklch */ color: oklch(62.8% 0.119 312.5);
Tailwind
colors: {
  custom: {
    50: '#be9bd0',
    500: '#a172bc',
    950: '#000000',
  },
}
SCSS
$custom: #a172bc;
$custom-light: #be9bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a172bc",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 188
  },
  "hsl": {
    "h": 278.108,
    "s": 35.577,
    "l": 59.216
  },
  "oklch": {
    "l": 0.62782,
    "c": 0.11914,
    "h": 312.5
  },
  "luminance": 0.23243
}

Semantic roles & 50–950 ramp

primary
#A172BC
secondary
#C1D3B6
accent
#CC5C85
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #A172BC

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

Preview Lab → · Contrast checker → · Palette generator →

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