#A172BB#A172BB

#A172BB is a light, moderate violet. Relative luminance 0.232; OKLCH L 62.7% C 0.118 H 312.9°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#A172BB
RGBrgb(161, 114, 187)
HSLhsl(279, 35%, 59%)
HSVhsv(279, 39%, 73%)
CMYKcmyk(13.9%, 39%, 0%, 26.7%)
CIE-LABlab(55.28, 32.00, -31.32)
CIE-LCHlch(55.28, 44.78, 315.61°)
OKLaboklab(62.73% 0.0802 -0.0864)
OKLCHoklch(62.73% 0.118 312.9)
XYZxyz(29.6834, 23.2001, 49.9184)
Luminance0.2320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172BB #8CBB72
analogous
#7D72BB #A172BB #BB72B1
triadic
#A172BB #BBA172 #72BBA1
tetradic
#A172BB #BB7D72 #8CBB72 #72B1BB
square
#A172BB #BB7D72 #8CBB72 #72B1BB
split-complementary
#A172BB #B1BB72 #72BB7D
monochromatic
#623A78 #844EA2 #A172BB #BD9BCF #D8C5E3

Accessibility & contrast

On white

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

On black

5.64
#A172BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172BB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172BB#FFFFFF#000000##000000
##A172BB1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6582BE
Deuteranopia (green-blind)
#7086B9
Tritanopia (blue-blind)
#9F7C8E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a172bb;
/* rgb */ color: rgb(161, 114, 187);
/* oklch */ color: oklch(62.7% 0.118 312.9);
Tailwind
colors: {
  custom: {
    50: '#be9bcf',
    500: '#a172bb',
    950: '#000000',
  },
}
SCSS
$custom: #a172bb;
$custom-light: #be9bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#a172bb",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 187
  },
  "hsl": {
    "h": 278.63,
    "s": 34.928,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62734,
    "c": 0.11793,
    "h": 312.9
  },
  "luminance": 0.232
}

Semantic roles & 50–950 ramp

primary
#A172BB
secondary
#C0D3B6
accent
#CB5D84
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #A172BB

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

Preview Lab → · Contrast checker → · Palette generator →

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