#A162DC#A162DC

#A162DC is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.9% C 0.183 H 305.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#A162DC
RGBrgb(161, 98, 220)
HSLhsl(271, 64%, 62%)
HSVhsv(271, 55%, 86%)
CMYKcmyk(26.8%, 55.5%, 0%, 13.7%)
CIE-LABlab(53.47, 48.32, -52.97)
CIE-LCHlch(53.47, 71.70, 312.38°)
OKLaboklab(61.93% 0.1066 -0.1492)
OKLCHoklch(61.93% 0.183 305.5)
XYZxyz(31.9811, 21.4800, 70.1575)
Luminance0.2148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A162DC #9DDC62
analogous
#6462DC #A162DC #DC62DA
triadic
#A162DC #DCA162 #62DCA1
tetradic
#A162DC #DC6462 #9DDC62 #62DADC
square
#A162DC #DC6462 #9DDC62 #62DADC
split-complementary
#A162DC #DADC62 #62DC64
monochromatic
#6424A0 #8330D1 #A162DC #BF94E7 #DDC6F2

Accessibility & contrast

On white

3.97
#A162DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#A162DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A162DC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A162DC#FFFFFF#000000##000000
##A162DC1.003.975.305.30
#FFFFFF3.971.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#357EE0
Deuteranopia (green-blind)
#4C80D9
Tritanopia (blue-blind)
#977996
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #a162dc;
/* rgb */ color: rgb(161, 98, 220);
/* oklch */ color: oklch(61.9% 0.183 305.5);
Tailwind
colors: {
  custom: {
    50: '#c091e7',
    500: '#a162dc',
    950: '#000000',
  },
}
SCSS
$custom: #a162dc;
$custom-light: #c091e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a162dc",
  "rgb": {
    "r": 161,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 270.984,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61928,
    "c": 0.18338,
    "h": 305.5
  },
  "luminance": 0.2148
}

Semantic roles & 50–950 ramp

primary
#A162DC
secondary
#CCE3B7
accent
#CB1A70
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #A162DC

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

Preview Lab → · Contrast checker → · Palette generator →

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