#A162CB#A162CB

#A162CB is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.9% C 0.164 H 310.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#A162CB
RGBrgb(161, 98, 203)
HSLhsl(276, 50%, 59%)
HSVhsv(276, 52%, 80%)
CMYKcmyk(20.7%, 51.7%, 0%, 20.4%)
CIE-LABlab(52.54, 44.42, -44.79)
CIE-LCHlch(52.54, 63.08, 314.76°)
OKLaboklab(60.94% 0.1055 -0.1253)
OKLCHoklch(60.94% 0.164 310.1)
XYZxyz(29.8431, 20.6248, 58.8972)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A162CB #8CCB62
analogous
#6D62CB #A162CB #CB62C1
triadic
#A162CB #CBA162 #62CBA1
tetradic
#A162CB #CB6D62 #8CCB62 #62C1CB
square
#A162CB #CB6D62 #8CCB62 #62C1CB
split-complementary
#A162CB #C1CB62 #62CB6D
monochromatic
#622C86 #843CB4 #A162CB #BD90DA #D8BEE9

Accessibility & contrast

On white

4.10
#A162CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#A162CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A162CB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A162CB#FFFFFF#000000##000000
##A162CB1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ACF
Deuteranopia (green-blind)
#597EC8
Tritanopia (blue-blind)
#9C748D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a162cb;
/* rgb */ color: rgb(161, 98, 203);
/* oklch */ color: oklch(60.9% 0.164 310.1);
Tailwind
colors: {
  custom: {
    50: '#bf91db',
    500: '#a162cb',
    950: '#000000',
  },
}
SCSS
$custom: #a162cb;
$custom-light: #bf91db;
$custom-dark: #000000;
JSON
{
  "hex": "#a162cb",
  "rgb": {
    "r": 161,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 276,
    "s": 50.239,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60937,
    "c": 0.16386,
    "h": 310.1
  },
  "luminance": 0.20624
}

Semantic roles & 50–950 ramp

primary
#A162CB
secondary
#C0D9B0
accent
#DA4E86
background
#FCF9FD
surface
#F8F1FB
border
#D1CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #A162CB

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

Preview Lab → · Contrast checker → · Palette generator →

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