#A172F5#A172F5

#A172F5 is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.9% C 0.189 H 297.5°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A172F5
RGBrgb(161, 114, 245)
HSLhsl(262, 87%, 70%)
HSVhsv(262, 53%, 96%)
CMYKcmyk(34.3%, 53.5%, 0%, 3.9%)
CIE-LABlab(58.23, 45.76, -59.34)
CIE-LCHlch(58.23, 74.94, 307.64°)
OKLaboklab(65.9% 0.0875 -0.1679)
OKLCHoklch(65.9% 0.189 297.5)
XYZxyz(37.1926, 26.2038, 89.4668)
Luminance0.2620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172F5 #C6F572
analogous
#7284F5 #A172F5 #E372F5
triadic
#A172F5 #F5A172 #72F5A1
tetradic
#A172F5 #F57284 #C6F572 #72F5E3
square
#A172F5 #F57284 #C6F572 #72F5E3
split-complementary
#A172F5 #F5E372 #84F572
monochromatic
#5910DD #7B39F1 #A172F5 #C7ABF9 #ECE2FD

Accessibility & contrast

On white

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

On black

6.24
#A172F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172F5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172F5#FFFFFF#000000##000000
##A172F51.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8CF9
Deuteranopia (green-blind)
#4A8BF2
Tritanopia (blue-blind)
#8E8CA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a172f5;
/* rgb */ color: rgb(161, 114, 245);
/* oklch */ color: oklch(65.9% 0.189 297.5);
Tailwind
colors: {
  custom: {
    50: '#c19cf9',
    500: '#a172f5',
    950: '#000000',
  },
}
SCSS
$custom: #a172f5;
$custom-light: #c19cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#a172f5",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 261.527,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65899,
    "c": 0.18936,
    "h": 297.5
  },
  "luminance": 0.26204
}

Semantic roles & 50–950 ramp

primary
#A172F5
secondary
#E6F3CF
accent
#E30293
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172F5

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

Preview Lab → · Contrast checker → · Palette generator →

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