#A172F2#A172F2

#A172F2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.7% C 0.186 H 298.1°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#A172F2
RGBrgb(161, 114, 242)
HSLhsl(262, 83%, 70%)
HSVhsv(262, 53%, 95%)
CMYKcmyk(33.5%, 52.9%, 0%, 5.1%)
CIE-LABlab(58.06, 45.00, -57.95)
CIE-LCHlch(58.06, 73.38, 307.83°)
OKLaboklab(65.72% 0.0873 -0.1639)
OKLCHoklch(65.72% 0.186 298.1)
XYZxyz(36.7383, 26.0221, 87.0744)
Luminance0.2602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A172F2 #C3F272
analogous
#7283F2 #A172F2 #E172F2
triadic
#A172F2 #F2A172 #72F2A1
tetradic
#A172F2 #F27283 #C3F272 #72F2E1
square
#A172F2 #F27283 #C3F272 #72F2E1
split-complementary
#A172F2 #F2E172 #83F272
monochromatic
#5B14D6 #7C3AED #A172F2 #C6AAF7 #ECE2FC

Accessibility & contrast

On white

3.38
#A172F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#A172F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A172F2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A172F2#FFFFFF#000000##000000
##A172F21.003.386.206.20
#FFFFFF3.381.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8CF6
Deuteranopia (green-blind)
#4D8AEF
Tritanopia (blue-blind)
#8F8BA7
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a172f2;
/* rgb */ color: rgb(161, 114, 242);
/* oklch */ color: oklch(65.7% 0.186 298.1);
Tailwind
colors: {
  custom: {
    50: '#c19cf7',
    500: '#a172f2',
    950: '#000000',
  },
}
SCSS
$custom: #a172f2;
$custom-light: #c19cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#a172f2",
  "rgb": {
    "r": 161,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 262.031,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65717,
    "c": 0.18569,
    "h": 298.1
  },
  "luminance": 0.26022
}

Semantic roles & 50–950 ramp

primary
#A172F2
secondary
#E5F2CE
accent
#E00690
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A172F2

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

Preview Lab → · Contrast checker → · Palette generator →

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