#A172E9#A172E9

#A172E9 is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.2% C 0.175 H 299.8°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#A172E9
RGBrgb(161, 114, 233)
HSLhsl(264, 73%, 68%)
HSVhsv(264, 51%, 91%)
CMYKcmyk(30.9%, 51.1%, 0%, 8.6%)
CIE-LABlab(57.55, 42.77, -53.75)
CIE-LCHlch(57.55, 68.69, 308.51°)
OKLaboklab(65.18% 0.0868 -0.1515)
OKLCHoklch(65.18% 0.175 299.8)
XYZxyz(35.4198, 25.4946, 80.1299)
Luminance0.2550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172E9 #BAE972
analogous
#727FE9 #A172E9 #DC72E9
triadic
#A172E9 #E9A172 #72E9A1
tetradic
#A172E9 #E9727F #BAE972 #72E9DC
square
#A172E9 #E9727F #BAE972 #72E9DC
split-complementary
#A172E9 #E9DC72 #7FE972
monochromatic
#5F1EC2 #7E3DE1 #A172E9 #C4A7F1 #E8DCFA

Accessibility & contrast

On white

3.44
#A172E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#A172E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172E9
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172E9#FFFFFF#000000##000000
##A172E91.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#488AED
Deuteranopia (green-blind)
#5589E6
Tritanopia (blue-blind)
#9289A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a172e9;
/* rgb */ color: rgb(161, 114, 233);
/* oklch */ color: oklch(65.2% 0.175 299.8);
Tailwind
colors: {
  custom: {
    50: '#c09cf0',
    500: '#a172e9',
    950: '#000000',
  },
}
SCSS
$custom: #a172e9;
$custom-light: #c09cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#a172e9",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 233
  },
  "hsl": {
    "h": 263.697,
    "s": 73.006,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6518,
    "c": 0.17465,
    "h": 299.8
  },
  "luminance": 0.25495
}

Semantic roles & 50–950 ramp

primary
#A172E9
secondary
#DFEEC9
accent
#D51087
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172E9

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

Preview Lab → · Contrast checker → · Palette generator →

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