#A172E5#A172E5

#A172E5 is a light, vivid violet. Relative luminance 0.253; OKLCH L 64.9% C 0.170 H 300.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#A172E5
RGBrgb(161, 114, 229)
HSLhsl(265, 69%, 67%)
HSVhsv(265, 50%, 90%)
CMYKcmyk(29.7%, 50.2%, 0%, 10.2%)
CIE-LABlab(57.34, 41.78, -51.86)
CIE-LCHlch(57.34, 66.60, 308.86°)
OKLaboklab(64.95% 0.0865 -0.146)
OKLCHoklch(64.95% 0.17 300.6)
XYZxyz(34.8548, 25.2687, 77.1546)
Luminance0.2527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172E5 #B6E572
analogous
#727DE5 #A172E5 #DB72E5
triadic
#A172E5 #E5A172 #72E5A1
tetradic
#A172E5 #E5727D #B6E572 #72E5DB
square
#A172E5 #E5727D #B6E572 #72E5DB
split-complementary
#A172E5 #E5DB72 #7DE572
monochromatic
#6022BA #7F3EDB #A172E5 #C3A6EF #E6D9F8

Accessibility & contrast

On white

3.47
#A172E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#A172E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172E5
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172E5#FFFFFF#000000##000000
##A172E51.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B89E9
Deuteranopia (green-blind)
#5889E2
Tritanopia (blue-blind)
#9488A1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a172e5;
/* rgb */ color: rgb(161, 114, 229);
/* oklch */ color: oklch(64.9% 0.170 300.6);
Tailwind
colors: {
  custom: {
    50: '#c09cee',
    500: '#a172e5',
    950: '#000000',
  },
}
SCSS
$custom: #a172e5;
$custom-light: #c09cee;
$custom-dark: #000000;
JSON
{
  "hex": "#a172e5",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 229
  },
  "hsl": {
    "h": 264.522,
    "s": 68.862,
    "l": 67.255
  },
  "oklch": {
    "l": 0.64948,
    "c": 0.16972,
    "h": 300.6
  },
  "luminance": 0.25269
}

Semantic roles & 50–950 ramp

primary
#A172E5
secondary
#DDECC7
accent
#D11584
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A172E5

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

Preview Lab → · Contrast checker → · Palette generator →

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