#A172F7#A172F7

#A172F7 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.0% C 0.192 H 297.2°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A172F7
RGBrgb(161, 114, 247)
HSLhsl(261, 89%, 71%)
HSVhsv(261, 54%, 97%)
CMYKcmyk(34.8%, 53.8%, 0%, 3.1%)
CIE-LABlab(58.35, 46.26, -60.26)
CIE-LCHlch(58.35, 75.97, 307.51°)
OKLaboklab(66.02% 0.0876 -0.1706)
OKLCHoklch(66.02% 0.192 297.2)
XYZxyz(37.4996, 26.3266, 91.0835)
Luminance0.2633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172F7 #C8F772
analogous
#7285F7 #A172F7 #E372F7
triadic
#A172F7 #F7A172 #72F7A1
tetradic
#A172F7 #F77285 #C8F772 #72F7E3
square
#A172F7 #F77285 #C8F772 #72F7E3
split-complementary
#A172F7 #F7E372 #85F772
monochromatic
#580DE2 #7A38F4 #A172F7 #C8ACFA #ECE2FD

Accessibility & contrast

On white

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

On black

6.27
#A172F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172F7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172F7#FFFFFF#000000##000000
##A172F71.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#398DFB
Deuteranopia (green-blind)
#478BF4
Tritanopia (blue-blind)
#8D8DAA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a172f7;
/* rgb */ color: rgb(161, 114, 247);
/* oklch */ color: oklch(66.0% 0.192 297.2);
Tailwind
colors: {
  custom: {
    50: '#c19cfa',
    500: '#a172f7',
    950: '#000000',
  },
}
SCSS
$custom: #a172f7;
$custom-light: #c19cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a172f7",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 247
  },
  "hsl": {
    "h": 261.203,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66022,
    "c": 0.1918,
    "h": 297.2
  },
  "luminance": 0.26327
}

Semantic roles & 50–950 ramp

primary
#A172F7
secondary
#E8F4D1
accent
#E60094
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172F7

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

Preview Lab → · Contrast checker → · Palette generator →

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