#A172DF#A172DF

#A172DF is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.6% C 0.162 H 302.0°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#A172DF
RGBrgb(161, 114, 223)
HSLhsl(266, 63%, 66%)
HSVhsv(266, 49%, 87%)
CMYKcmyk(27.8%, 48.9%, 0%, 12.5%)
CIE-LABlab(57.02, 40.32, -49.01)
CIE-LCHlch(57.02, 63.46, 309.44°)
OKLaboklab(64.61% 0.0859 -0.1377)
OKLCHoklch(64.61% 0.162 302)
XYZxyz(34.0315, 24.9394, 72.8186)
Luminance0.2494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172DF #B0DF72
analogous
#7279DF #A172DF #D872DF
triadic
#A172DF #DFA172 #72DFA1
tetradic
#A172DF #DF7279 #B0DF72 #72DFD8
square
#A172DF #DF7279 #B0DF72 #72DFD8
split-complementary
#A172DF #DFD872 #79DF72
monochromatic
#6228AF #8040D4 #A172DF #C2A4EA #E4D6F6

Accessibility & contrast

On white

3.51
#A172DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#A172DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172DF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172DF#FFFFFF#000000##000000
##A172DF1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5088E3
Deuteranopia (green-blind)
#5C88DC
Tritanopia (blue-blind)
#95869E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a172df;
/* rgb */ color: rgb(161, 114, 223);
/* oklch */ color: oklch(64.6% 0.162 302.0);
Tailwind
colors: {
  custom: {
    50: '#bf9be9',
    500: '#a172df',
    950: '#000000',
  },
}
SCSS
$custom: #a172df;
$custom-light: #bf9be9;
$custom-dark: #000000;
JSON
{
  "hex": "#a172df",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 223
  },
  "hsl": {
    "h": 265.872,
    "s": 63.006,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64606,
    "c": 0.16231,
    "h": 302
  },
  "luminance": 0.24939
}

Semantic roles & 50–950 ramp

primary
#A172DF
secondary
#D9E8C4
accent
#CB1B7F
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A172DF

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

Preview Lab → · Contrast checker → · Palette generator →

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