#A172EA#A172EA

#A172EA is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.2% C 0.176 H 299.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#A172EA
RGBrgb(161, 114, 234)
HSLhsl(264, 74%, 68%)
HSVhsv(264, 51%, 92%)
CMYKcmyk(31.2%, 51.3%, 0%, 8.2%)
CIE-LABlab(57.61, 43.01, -54.22)
CIE-LCHlch(57.61, 69.21, 308.42°)
OKLaboklab(65.24% 0.0869 -0.1529)
OKLCHoklch(65.24% 0.176 299.6)
XYZxyz(35.5630, 25.5519, 80.8844)
Luminance0.2555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172EA #BBEA72
analogous
#727FEA #A172EA #DD72EA
triadic
#A172EA #EAA172 #72EAA1
tetradic
#A172EA #EA727F #BBEA72 #72EADD
square
#A172EA #EA727F #BBEA72 #72EADD
split-complementary
#A172EA #EADD72 #7FEA72
monochromatic
#5F1DC4 #7D3DE2 #A172EA #C5A7F2 #E8DDFA

Accessibility & contrast

On white

3.44
#A172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#A172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172EA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172EA#FFFFFF#000000##000000
##A172EA1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#478AEE
Deuteranopia (green-blind)
#5489E7
Tritanopia (blue-blind)
#9289A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a172ea;
/* rgb */ color: rgb(161, 114, 234);
/* oklch */ color: oklch(65.2% 0.176 299.6);
Tailwind
colors: {
  custom: {
    50: '#c09cf1',
    500: '#a172ea',
    950: '#000000',
  },
}
SCSS
$custom: #a172ea;
$custom-light: #c09cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#a172ea",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 263.5,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65239,
    "c": 0.17588,
    "h": 299.6
  },
  "luminance": 0.25552
}

Semantic roles & 50–950 ramp

primary
#A172EA
secondary
#E0EECA
accent
#D60F88
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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