#A172F6#A172F6

#A172F6 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.0% C 0.191 H 297.3°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#A172F6
RGBrgb(161, 114, 246)
HSLhsl(261, 88%, 71%)
HSVhsv(261, 54%, 96%)
CMYKcmyk(34.6%, 53.7%, 0%, 3.5%)
CIE-LABlab(58.29, 46.01, -59.80)
CIE-LCHlch(58.29, 75.46, 307.57°)
OKLaboklab(65.96% 0.0875 -0.1693)
OKLCHoklch(65.96% 0.191 297.3)
XYZxyz(37.3457, 26.2650, 90.2730)
Luminance0.2627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172F6 #C7F672
analogous
#7285F6 #A172F6 #E372F6
triadic
#A172F6 #F6A172 #72F6A1
tetradic
#A172F6 #F67285 #C7F672 #72F6E3
square
#A172F6 #F67285 #C7F672 #72F6E3
split-complementary
#A172F6 #F6E372 #85F672
monochromatic
#590EDF #7B38F2 #A172F6 #C7ACFA #ECE2FD

Accessibility & contrast

On white

3.36
#A172F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#A172F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172F6
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172F6#FFFFFF#000000##000000
##A172F61.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8DFA
Deuteranopia (green-blind)
#488BF3
Tritanopia (blue-blind)
#8E8DA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a172f6;
/* rgb */ color: rgb(161, 114, 246);
/* oklch */ color: oklch(66.0% 0.191 297.3);
Tailwind
colors: {
  custom: {
    50: '#c19cfa',
    500: '#a172f6',
    950: '#000000',
  },
}
SCSS
$custom: #a172f6;
$custom-light: #c19cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a172f6",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 246
  },
  "hsl": {
    "h": 261.364,
    "s": 88,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65961,
    "c": 0.19058,
    "h": 297.3
  },
  "luminance": 0.26266
}

Semantic roles & 50–950 ramp

primary
#A172F6
secondary
#E7F4D0
accent
#E50194
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172F6

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

Preview Lab → · Contrast checker → · Palette generator →

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