#A172FC#A172FC

#A172FC is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.3% C 0.198 H 296.3°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#A172FC
RGBrgb(161, 114, 252)
HSLhsl(260, 96%, 72%)
HSVhsv(260, 55%, 99%)
CMYKcmyk(36.1%, 54.8%, 0%, 1.2%)
CIE-LABlab(58.64, 47.53, -62.56)
CIE-LCHlch(58.64, 78.57, 307.23°)
OKLaboklab(66.33% 0.0877 -0.1774)
OKLCHoklch(66.33% 0.198 296.3)
XYZxyz(38.2815, 26.6393, 95.2016)
Luminance0.2664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172FC #CDFC72
analogous
#7288FC #A172FC #E672FC
triadic
#A172FC #FCA172 #72FCA1
tetradic
#A172FC #FC7288 #CDFC72 #72FCE6
square
#A172FC #FC7288 #CDFC72 #72FCE6
split-complementary
#A172FC #FCE672 #88FC72
monochromatic
#5505EF #7936FB #A172FC #C9AEFD #EBE1FE

Accessibility & contrast

On white

3.32
#A172FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#A172FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172FC
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172FC#FFFFFF#000000##000000
##A172FC1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#328EFF
Deuteranopia (green-blind)
#428BF9
Tritanopia (blue-blind)
#8C8EAC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #a172fc;
/* rgb */ color: rgb(161, 114, 252);
/* oklch */ color: oklch(66.3% 0.198 296.3);
Tailwind
colors: {
  custom: {
    50: '#c19cfe',
    500: '#a172fc',
    950: '#000000',
  },
}
SCSS
$custom: #a172fc;
$custom-light: #c19cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#a172fc",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 252
  },
  "hsl": {
    "h": 260.435,
    "s": 95.833,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66333,
    "c": 0.19787,
    "h": 296.3
  },
  "luminance": 0.2664
}

Semantic roles & 50–950 ramp

primary
#A172FC
secondary
#EAF6D3
accent
#E60097
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A172FC

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

Preview Lab → · Contrast checker → · Palette generator →

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