#A172E7#A172E7

#A172E7 is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.1% C 0.172 H 300.2°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#A172E7
RGBrgb(161, 114, 231)
HSLhsl(264, 71%, 68%)
HSVhsv(264, 51%, 91%)
CMYKcmyk(30.3%, 50.6%, 0%, 9.4%)
CIE-LABlab(57.44, 42.27, -52.81)
CIE-LCHlch(57.44, 67.64, 308.68°)
OKLaboklab(65.06% 0.0866 -0.1488)
OKLCHoklch(65.06% 0.172 300.2)
XYZxyz(35.1357, 25.3810, 78.6338)
Luminance0.2538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172E7 #B8E772
analogous
#727DE7 #A172E7 #DC72E7
triadic
#A172E7 #E7A172 #72E7A1
tetradic
#A172E7 #E7727D #B8E772 #72E7DC
square
#A172E7 #E7727D #B8E772 #72E7DC
split-complementary
#A172E7 #E7DC72 #7DE772
monochromatic
#6020BE #7E3EDE #A172E7 #C4A6F0 #E7DBF9

Accessibility & contrast

On white

3.46
#A172E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#A172E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172E7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172E7#FFFFFF#000000##000000
##A172E71.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8AEB
Deuteranopia (green-blind)
#5689E4
Tritanopia (blue-blind)
#9388A2
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a172e7;
/* rgb */ color: rgb(161, 114, 231);
/* oklch */ color: oklch(65.1% 0.172 300.2);
Tailwind
colors: {
  custom: {
    50: '#c09cef',
    500: '#a172e7',
    950: '#000000',
  },
}
SCSS
$custom: #a172e7;
$custom-light: #c09cef;
$custom-dark: #000000;
JSON
{
  "hex": "#a172e7",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 231
  },
  "hsl": {
    "h": 264.103,
    "s": 70.909,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65064,
    "c": 0.17219,
    "h": 300.2
  },
  "luminance": 0.25381
}

Semantic roles & 50–950 ramp

primary
#A172E7
secondary
#DEEDC8
accent
#D31386
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A172E7

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

Preview Lab → · Contrast checker → · Palette generator →

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