#A172F8#A172F8

#A172F8 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.193 H 297.0°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A172F8
RGBrgb(161, 114, 248)
HSLhsl(261, 91%, 71%)
HSVhsv(261, 54%, 97%)
CMYKcmyk(35.1%, 54%, 0%, 2.7%)
CIE-LABlab(58.40, 46.52, -60.72)
CIE-LCHlch(58.40, 76.49, 307.45°)
OKLaboklab(66.08% 0.0876 -0.172)
OKLCHoklch(66.08% 0.193 297)
XYZxyz(37.6543, 26.3885, 91.8984)
Luminance0.2639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172F8 #C9F872
analogous
#7286F8 #A172F8 #E472F8
triadic
#A172F8 #F8A172 #72F8A1
tetradic
#A172F8 #F87286 #C9F872 #72F8E4
square
#A172F8 #F87286 #C9F872 #72F8E4
split-complementary
#A172F8 #F8E472 #86F872
monochromatic
#570BE4 #7A38F5 #A172F8 #C8ACFB #ECE2FE

Accessibility & contrast

On white

3.35
#A172F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#A172F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172F8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172F8#FFFFFF#000000##000000
##A172F81.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#388DFD
Deuteranopia (green-blind)
#468BF5
Tritanopia (blue-blind)
#8D8DAA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a172f8;
/* rgb */ color: rgb(161, 114, 248);
/* oklch */ color: oklch(66.1% 0.193 297.0);
Tailwind
colors: {
  custom: {
    50: '#c19cfb',
    500: '#a172f8',
    950: '#000000',
  },
}
SCSS
$custom: #a172f8;
$custom-light: #c19cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#a172f8",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 248
  },
  "hsl": {
    "h": 261.045,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66084,
    "c": 0.19302,
    "h": 297
  },
  "luminance": 0.26389
}

Semantic roles & 50–950 ramp

primary
#A172F8
secondary
#E8F5D1
accent
#E60095
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172F8

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

Preview Lab → · Contrast checker → · Palette generator →

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