#A172EB#A172EB

#A172EB is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.3% C 0.177 H 299.4°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#A172EB
RGBrgb(161, 114, 235)
HSLhsl(263, 75%, 68%)
HSVhsv(263, 51%, 92%)
CMYKcmyk(31.5%, 51.5%, 0%, 7.8%)
CIE-LABlab(57.66, 43.26, -54.69)
CIE-LCHlch(57.66, 69.73, 308.34°)
OKLaboklab(65.3% 0.0869 -0.1543)
OKLCHoklch(65.3% 0.177 299.4)
XYZxyz(35.7071, 25.6096, 81.6431)
Luminance0.2561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172EB #BCEB72
analogous
#727FEB #A172EB #DD72EB
triadic
#A172EB #EBA172 #72EBA1
tetradic
#A172EB #EB727F #BCEB72 #72EBDD
square
#A172EB #EB727F #BCEB72 #72EBDD
split-complementary
#A172EB #EBDD72 #7FEB72
monochromatic
#5E1CC6 #7D3CE3 #A172EB #C5A8F3 #E8DDFA

Accessibility & contrast

On white

3.43
#A172EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#A172EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172EB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172EB#FFFFFF#000000##000000
##A172EB1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#468AEF
Deuteranopia (green-blind)
#538AE8
Tritanopia (blue-blind)
#9289A4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a172eb;
/* rgb */ color: rgb(161, 114, 235);
/* oklch */ color: oklch(65.3% 0.177 299.4);
Tailwind
colors: {
  custom: {
    50: '#c09cf2',
    500: '#a172eb',
    950: '#000000',
  },
}
SCSS
$custom: #a172eb;
$custom-light: #c09cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a172eb",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 263.306,
    "s": 75.155,
    "l": 68.431
  },
  "oklch": {
    "l": 0.65298,
    "c": 0.17711,
    "h": 299.4
  },
  "luminance": 0.2561
}

Semantic roles & 50–950 ramp

primary
#A172EB
secondary
#E0EFCA
accent
#D70E89
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172EB

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

Preview Lab → · Contrast checker → · Palette generator →

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