#A172F4#A172F4

#A172F4 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.8% C 0.188 H 297.7°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A172F4
RGBrgb(161, 114, 244)
HSLhsl(262, 86%, 70%)
HSVhsv(262, 53%, 96%)
CMYKcmyk(34%, 53.3%, 0%, 4.3%)
CIE-LABlab(58.17, 45.51, -58.88)
CIE-LCHlch(58.17, 74.42, 307.70°)
OKLaboklab(65.84% 0.0874 -0.1666)
OKLCHoklch(65.84% 0.188 297.7)
XYZxyz(37.0403, 26.1429, 88.6650)
Luminance0.2614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172F4 #C5F472
analogous
#7284F4 #A172F4 #E272F4
triadic
#A172F4 #F4A172 #72F4A1
tetradic
#A172F4 #F47284 #C5F472 #72F4E2
square
#A172F4 #F47284 #C5F472 #72F4E2
split-complementary
#A172F4 #F4E272 #84F472
monochromatic
#5A11DB #7B39F0 #A172F4 #C7ABF8 #ECE3FD

Accessibility & contrast

On white

3.37
#A172F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#A172F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172F4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172F4#FFFFFF#000000##000000
##A172F41.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8CF8
Deuteranopia (green-blind)
#4B8AF1
Tritanopia (blue-blind)
#8F8CA8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a172f4;
/* rgb */ color: rgb(161, 114, 244);
/* oklch */ color: oklch(65.8% 0.188 297.7);
Tailwind
colors: {
  custom: {
    50: '#c19cf8',
    500: '#a172f4',
    950: '#000000',
  },
}
SCSS
$custom: #a172f4;
$custom-light: #c19cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#a172f4",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 244
  },
  "hsl": {
    "h": 261.692,
    "s": 85.526,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65838,
    "c": 0.18814,
    "h": 297.7
  },
  "luminance": 0.26143
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A172F4

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

Preview Lab → · Contrast checker → · Palette generator →

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