#A162CD#A162CD

#A162CD is a mid, vivid violet. Relative luminance 0.207; OKLCH L 61.1% C 0.166 H 309.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#A162CD
RGBrgb(161, 98, 205)
HSLhsl(275, 52%, 59%)
HSVhsv(275, 52%, 80%)
CMYKcmyk(21.5%, 52.2%, 0%, 19.6%)
CIE-LABlab(52.64, 44.87, -45.77)
CIE-LCHlch(52.64, 64.09, 314.44°)
OKLaboklab(61.05% 0.1057 -0.1282)
OKLCHoklch(61.05% 0.166 309.5)
XYZxyz(30.0830, 20.7207, 60.1605)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A162CD #8ECD62
analogous
#6C62CD #A162CD #CD62C4
triadic
#A162CD #CDA162 #62CDA1
tetradic
#A162CD #CD6C62 #8ECD62 #62C4CD
square
#A162CD #CD6C62 #8ECD62 #62C4CD
split-complementary
#A162CD #C4CD62 #62CD6C
monochromatic
#632C89 #843AB7 #A162CD #BD90DC #D9BFEB

Accessibility & contrast

On white

4.08
#A162CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#A162CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A162CD
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A162CD#FFFFFF#000000##000000
##A162CD1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#447BD1
Deuteranopia (green-blind)
#587FCA
Tritanopia (blue-blind)
#9B748E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a162cd;
/* rgb */ color: rgb(161, 98, 205);
/* oklch */ color: oklch(61.1% 0.166 309.5);
Tailwind
colors: {
  custom: {
    50: '#bf91dd',
    500: '#a162cd',
    950: '#000000',
  },
}
SCSS
$custom: #a162cd;
$custom-light: #bf91dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a162cd",
  "rgb": {
    "r": 161,
    "g": 98,
    "b": 205
  },
  "hsl": {
    "h": 275.327,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6105,
    "c": 0.16615,
    "h": 309.5
  },
  "luminance": 0.2072
}

Semantic roles & 50–950 ramp

primary
#A162CD
secondary
#C2DAB1
accent
#DB4D87
background
#FCF9FD
surface
#F8F1FB
border
#D1CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #A162CD

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

Preview Lab → · Contrast checker → · Palette generator →

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