#A172C8#A172C8

#A172C8 is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.4% C 0.134 H 308.2°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#A172C8
RGBrgb(161, 114, 200)
HSLhsl(273, 44%, 62%)
HSVhsv(273, 43%, 78%)
CMYKcmyk(19.5%, 43%, 0%, 21.6%)
CIE-LABlab(55.87, 34.91, -37.82)
CIE-LCHlch(55.87, 51.47, 312.70°)
OKLaboklab(63.37% 0.0828 -0.1052)
OKLCHoklch(63.37% 0.134 308.2)
XYZxyz(31.1386, 23.7822, 57.5824)
Luminance0.2378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172C8 #99C872
analogous
#7672C8 #A172C8 #C872C4
triadic
#A172C8 #C8A172 #72C8A1
tetradic
#A172C8 #C87672 #99C872 #72C4C8
square
#A172C8 #C87672 #99C872 #72C4C8
split-complementary
#A172C8 #C4C872 #72C876
monochromatic
#64368A #8447B6 #A172C8 #BE9ED9 #DCCAEA

Accessibility & contrast

On white

3.65
#A172C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#A172C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172C8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172C8#FFFFFF#000000##000000
##A172C81.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E84CB
Deuteranopia (green-blind)
#6A87C6
Tritanopia (blue-blind)
#9C7F93
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a172c8;
/* rgb */ color: rgb(161, 114, 200);
/* oklch */ color: oklch(63.4% 0.134 308.2);
Tailwind
colors: {
  custom: {
    50: '#be9bd9',
    500: '#a172c8',
    950: '#000000',
  },
}
SCSS
$custom: #a172c8;
$custom-light: #be9bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a172c8",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 200
  },
  "hsl": {
    "h": 272.791,
    "s": 43.878,
    "l": 61.569
  },
  "oklch": {
    "l": 0.63373,
    "c": 0.13383,
    "h": 308.2
  },
  "luminance": 0.23782
}

Semantic roles & 50–950 ramp

primary
#A172C8
secondary
#C9DBBB
accent
#B72E6C
background
#FBF9FD
surface
#F7F2FA
border
#D0CCD3
text
#120E14
muted
#817E83

Preview Lab

Preview with #A172C8

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

Preview Lab → · Contrast checker → · Palette generator →

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