#A162DB#A162DB

#A162DB is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.9% C 0.182 H 305.8°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#A162DB
RGBrgb(161, 98, 219)
HSLhsl(271, 63%, 62%)
HSVhsv(271, 55%, 86%)
CMYKcmyk(26.5%, 55.3%, 0%, 14.1%)
CIE-LABlab(53.41, 48.09, -52.49)
CIE-LCHlch(53.41, 71.19, 312.49°)
OKLaboklab(61.87% 0.1066 -0.1478)
OKLCHoklch(61.87% 0.182 305.8)
XYZxyz(31.8491, 21.4271, 69.4621)
Luminance0.2143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A162DB #9CDB62
analogous
#6562DB #A162DB #DB62D8
triadic
#A162DB #DBA162 #62DBA1
tetradic
#A162DB #DB6562 #9CDB62 #62D8DB
square
#A162DB #DB6562 #9CDB62 #62D8DB
split-complementary
#A162DB #D8DB62 #62DB65
monochromatic
#64249E #8330D0 #A162DB #BF94E6 #DDC6F2

Accessibility & contrast

On white

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

On black

5.29
#A162DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A162DB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A162DB#FFFFFF#000000##000000
##A162DB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EDF
Deuteranopia (green-blind)
#4D80D8
Tritanopia (blue-blind)
#977995
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #a162db;
/* rgb */ color: rgb(161, 98, 219);
/* oklch */ color: oklch(61.9% 0.182 305.8);
Tailwind
colors: {
  custom: {
    50: '#c091e7',
    500: '#a162db',
    950: '#000000',
  },
}
SCSS
$custom: #a162db;
$custom-light: #c091e7;
$custom-dark: #000000;
JSON
{
  "hex": "#a162db",
  "rgb": {
    "r": 161,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 271.24,
    "s": 62.694,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61868,
    "c": 0.18223,
    "h": 305.8
  },
  "luminance": 0.21427
}

Semantic roles & 50–950 ramp

primary
#A162DB
secondary
#CBE3B6
accent
#CA1B6F
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #A162DB

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

Preview Lab → · Contrast checker → · Palette generator →

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