#A172EF#A172EF

#A172EF is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.5% C 0.182 H 298.6°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#A172EF
RGBrgb(161, 114, 239)
HSLhsl(263, 80%, 69%)
HSVhsv(263, 52%, 94%)
CMYKcmyk(32.6%, 52.3%, 0%, 6.3%)
CIE-LABlab(57.89, 44.25, -56.56)
CIE-LCHlch(57.89, 71.82, 308.04°)
OKLaboklab(65.54% 0.0872 -0.1598)
OKLCHoklch(65.54% 0.182 298.6)
XYZxyz(36.2915, 25.8433, 84.7209)
Luminance0.2584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172EF #C0EF72
analogous
#7282EF #A172EF #E072EF
triadic
#A172EF #EFA172 #72EFA1
tetradic
#A172EF #EF7282 #C0EF72 #72EFE0
square
#A172EF #EF7282 #C0EF72 #72EFE0
split-complementary
#A172EF #EFE072 #82EF72
monochromatic
#5D18CF #7C3BE9 #A172EF #C6A9F5 #EAE0FB

Accessibility & contrast

On white

3.40
#A172EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#A172EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172EF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172EF#FFFFFF#000000##000000
##A172EF1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#428BF3
Deuteranopia (green-blind)
#4F8AEC
Tritanopia (blue-blind)
#908AA6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a172ef;
/* rgb */ color: rgb(161, 114, 239);
/* oklch */ color: oklch(65.5% 0.182 298.6);
Tailwind
colors: {
  custom: {
    50: '#c09cf5',
    500: '#a172ef',
    950: '#000000',
  },
}
SCSS
$custom: #a172ef;
$custom-light: #c09cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a172ef",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 262.56,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.65536,
    "c": 0.18202,
    "h": 298.6
  },
  "luminance": 0.25844
}

Semantic roles & 50–950 ramp

primary
#A172EF
secondary
#E3F1CC
accent
#DC0A8D
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172EF

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

Preview Lab → · Contrast checker → · Palette generator →

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