#A172EC#A172EC

#A172EC is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.4% C 0.178 H 299.2°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#A172EC
RGBrgb(161, 114, 236)
HSLhsl(263, 76%, 69%)
HSVhsv(263, 52%, 93%)
CMYKcmyk(31.8%, 51.7%, 0%, 7.5%)
CIE-LABlab(57.72, 43.51, -55.16)
CIE-LCHlch(57.72, 70.25, 308.27°)
OKLaboklab(65.36% 0.087 -0.1557)
OKLCHoklch(65.36% 0.178 299.2)
XYZxyz(35.8519, 25.6675, 82.4061)
Luminance0.2567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172EC #BDEC72
analogous
#7280EC #A172EC #DE72EC
triadic
#A172EC #ECA172 #72ECA1
tetradic
#A172EC #EC7280 #BDEC72 #72ECDE
square
#A172EC #EC7280 #BDEC72 #72ECDE
split-complementary
#A172EC #ECDE72 #80EC72
monochromatic
#5E1BC9 #7D3CE5 #A172EC #C5A8F3 #E9DEFB

Accessibility & contrast

On white

3.42
#A172EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#A172EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172EC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172EC#FFFFFF#000000##000000
##A172EC1.003.426.136.13
#FFFFFF3.421.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#458BF0
Deuteranopia (green-blind)
#528AE9
Tritanopia (blue-blind)
#918AA4
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a172ec;
/* rgb */ color: rgb(161, 114, 236);
/* oklch */ color: oklch(65.4% 0.178 299.2);
Tailwind
colors: {
  custom: {
    50: '#c09cf3',
    500: '#a172ec',
    950: '#000000',
  },
}
SCSS
$custom: #a172ec;
$custom-light: #c09cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#a172ec",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 263.115,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.65357,
    "c": 0.17835,
    "h": 299.2
  },
  "luminance": 0.25668
}

Semantic roles & 50–950 ramp

primary
#A172EC
secondary
#E1EFCB
accent
#D80D8A
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172EC

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

Preview Lab → · Contrast checker → · Palette generator →

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