#A172BD#A172BD

#A172BD is a light, vivid violet. Relative luminance 0.233; OKLCH L 62.8% C 0.120 H 312.1°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#A172BD
RGBrgb(161, 114, 189)
HSLhsl(278, 36%, 59%)
HSVhsv(278, 40%, 74%)
CMYKcmyk(14.8%, 39.7%, 0%, 25.9%)
CIE-LABlab(55.37, 32.44, -32.33)
CIE-LCHlch(55.37, 45.80, 315.09°)
OKLaboklab(62.83% 0.0806 -0.0893)
OKLCHoklch(62.83% 0.12 312.1)
XYZxyz(29.8990, 23.2863, 51.0539)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172BD #8EBD72
analogous
#7C72BD #A172BD #BD72B4
triadic
#A172BD #BDA172 #72BDA1
tetradic
#A172BD #BD7C72 #8EBD72 #72B4BD
square
#A172BD #BD7C72 #8EBD72 #72B4BD
split-complementary
#A172BD #B4BD72 #72BD7C
monochromatic
#633A7B #844DA5 #A172BD #BD9CD1 #D9C5E4

Accessibility & contrast

On white

3.71
#A172BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#A172BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172BD
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172BD#FFFFFF#000000##000000
##A172BD1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6482C0
Deuteranopia (green-blind)
#6F86BB
Tritanopia (blue-blind)
#9E7D8F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #a172bd;
/* rgb */ color: rgb(161, 114, 189);
/* oklch */ color: oklch(62.8% 0.120 312.1);
Tailwind
colors: {
  custom: {
    50: '#be9bd1',
    500: '#a172bd',
    950: '#000000',
  },
}
SCSS
$custom: #a172bd;
$custom-light: #be9bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a172bd",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 189
  },
  "hsl": {
    "h": 277.6,
    "s": 36.232,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6283,
    "c": 0.12036,
    "h": 312.1
  },
  "luminance": 0.23286
}

Semantic roles & 50–950 ramp

primary
#A172BD
secondary
#C2D4B7
accent
#CC5C86
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82

Preview Lab

Preview with #A172BD

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

Preview Lab → · Contrast checker → · Palette generator →

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