#A172E2#A172E2

#A172E2 is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.8% C 0.166 H 301.3°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#A172E2
RGBrgb(161, 114, 226)
HSLhsl(265, 66%, 67%)
HSVhsv(265, 50%, 89%)
CMYKcmyk(28.8%, 49.6%, 0%, 11.4%)
CIE-LABlab(57.18, 41.05, -50.44)
CIE-LCHlch(57.18, 65.03, 309.14°)
OKLaboklab(64.78% 0.0862 -0.1419)
OKLCHoklch(64.78% 0.166 301.3)
XYZxyz(34.4396, 25.1026, 74.9677)
Luminance0.2510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172E2 #B3E272
analogous
#727BE2 #A172E2 #D972E2
triadic
#A172E2 #E2A172 #72E2A1
tetradic
#A172E2 #E2727B #B3E272 #72E2D9
square
#A172E2 #E2727B #B3E272 #72E2D9
split-complementary
#A172E2 #E2D972 #7BE272
monochromatic
#6125B4 #7F3FD8 #A172E2 #C3A5EC #E5D8F7

Accessibility & contrast

On white

3.49
#A172E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#A172E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172E2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172E2#FFFFFF#000000##000000
##A172E21.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E89E6
Deuteranopia (green-blind)
#5A89DF
Tritanopia (blue-blind)
#9587A0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a172e2;
/* rgb */ color: rgb(161, 114, 226);
/* oklch */ color: oklch(64.8% 0.166 301.3);
Tailwind
colors: {
  custom: {
    50: '#c09beb',
    500: '#a172e2',
    950: '#000000',
  },
}
SCSS
$custom: #a172e2;
$custom-light: #c09beb;
$custom-dark: #000000;
JSON
{
  "hex": "#a172e2",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 226
  },
  "hsl": {
    "h": 265.179,
    "s": 65.882,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64776,
    "c": 0.16601,
    "h": 301.3
  },
  "luminance": 0.25103
}

Semantic roles & 50–950 ramp

primary
#A172E2
secondary
#DBEAC6
accent
#CE1881
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #A172E2

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

Preview Lab → · Contrast checker → · Palette generator →

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