#A172FB#A172FB

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

Color values

HEX#A172FB
RGBrgb(161, 114, 251)
HSLhsl(261, 94%, 72%)
HSVhsv(261, 55%, 98%)
CMYKcmyk(35.9%, 54.6%, 0%, 1.6%)
CIE-LABlab(58.58, 47.28, -62.10)
CIE-LCHlch(58.58, 78.05, 307.28°)
OKLaboklab(66.27% 0.0877 -0.176)
OKLCHoklch(66.27% 0.197 296.5)
XYZxyz(38.1234, 26.5761, 94.3692)
Luminance0.2658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172FB #CCFB72
analogous
#7288FB #A172FB #E672FB
triadic
#A172FB #FBA172 #72FBA1
tetradic
#A172FB #FB7288 #CCFB72 #72FBE6
square
#A172FB #FB7288 #CCFB72 #72FBE6
split-complementary
#A172FB #FBE672 #88FB72
monochromatic
#5507EC #7936F9 #A172FB #C9AEFD #EBE1FE

Accessibility & contrast

On white

3.33
#A172FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#A172FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172FB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172FB#FFFFFF#000000##000000
##A172FB1.003.336.326.32
#FFFFFF3.331.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#348EFF
Deuteranopia (green-blind)
#438BF8
Tritanopia (blue-blind)
#8C8EAC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #a172fb;
/* rgb */ color: rgb(161, 114, 251);
/* oklch */ color: oklch(66.3% 0.197 296.5);
Tailwind
colors: {
  custom: {
    50: '#c19cfd',
    500: '#a172fb',
    950: '#000000',
  },
}
SCSS
$custom: #a172fb;
$custom-light: #c19cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#a172fb",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 251
  },
  "hsl": {
    "h": 260.584,
    "s": 94.483,
    "l": 71.569
  },
  "oklch": {
    "l": 0.6627,
    "c": 0.19665,
    "h": 296.5
  },
  "luminance": 0.26577
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A172FB

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

Preview Lab → · Contrast checker → · Palette generator →

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