#A162CC#A162CC

#A162CC is a mid, vivid violet. Relative luminance 0.207; OKLCH L 61.0% C 0.165 H 309.8°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#A162CC
RGBrgb(161, 98, 204)
HSLhsl(276, 51%, 59%)
HSVhsv(276, 52%, 80%)
CMYKcmyk(21.1%, 52%, 0%, 20%)
CIE-LABlab(52.59, 44.65, -45.28)
CIE-LCHlch(52.59, 63.59, 314.60°)
OKLaboklab(60.99% 0.1056 -0.1268)
OKLCHoklch(60.99% 0.165 309.8)
XYZxyz(29.9627, 20.6726, 59.5268)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A162CC #8DCC62
analogous
#6C62CC #A162CC #CC62C2
triadic
#A162CC #CCA162 #62CCA1
tetradic
#A162CC #CC6C62 #8DCC62 #62C2CC
square
#A162CC #CC6C62 #8DCC62 #62C2CC
split-complementary
#A162CC #C2CC62 #62CC6C
monochromatic
#622C88 #843BB6 #A162CC #BD90DB #D8BEEA

Accessibility & contrast

On white

4.09
#A162CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#A162CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A162CC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A162CC#FFFFFF#000000##000000
##A162CC1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#457BD0
Deuteranopia (green-blind)
#587FC9
Tritanopia (blue-blind)
#9C748E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a162cc;
/* rgb */ color: rgb(161, 98, 204);
/* oklch */ color: oklch(61.0% 0.165 309.8);
Tailwind
colors: {
  custom: {
    50: '#bf91dc',
    500: '#a162cc',
    950: '#000000',
  },
}
SCSS
$custom: #a162cc;
$custom-light: #bf91dc;
$custom-dark: #000000;
JSON
{
  "hex": "#a162cc",
  "rgb": {
    "r": 161,
    "g": 98,
    "b": 204
  },
  "hsl": {
    "h": 275.66,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60993,
    "c": 0.165,
    "h": 309.8
  },
  "luminance": 0.20672
}

Semantic roles & 50–950 ramp

primary
#A162CC
secondary
#C1DAB0
accent
#DA4D87
background
#FCF9FD
surface
#F8F1FB
border
#D1CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #A162CC

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

Preview Lab → · Contrast checker → · Palette generator →

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