#A162D2#A162D2

#A162D2 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.3% C 0.172 H 308.1°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#A162D2
RGBrgb(161, 98, 210)
HSLhsl(274, 55%, 60%)
HSVhsv(274, 53%, 82%)
CMYKcmyk(23.3%, 53.3%, 0%, 17.6%)
CIE-LABlab(52.91, 46.01, -48.19)
CIE-LCHlch(52.91, 66.62, 313.68°)
OKLaboklab(61.34% 0.1061 -0.1352)
OKLCHoklch(61.34% 0.172 308.1)
XYZxyz(30.6962, 20.9660, 63.3900)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A162D2 #93D262
analogous
#6962D2 #A162D2 #D262CB
triadic
#A162D2 #D2A162 #62D2A1
tetradic
#A162D2 #D26962 #93D262 #62CBD2
square
#A162D2 #D26962 #93D262 #62CBD2
split-complementary
#A162D2 #CBD262 #62D269
monochromatic
#632990 #8437C0 #A162D2 #BD92E0 #DAC1ED

Accessibility & contrast

On white

4.04
#A162D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#A162D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A162D2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A162D2#FFFFFF#000000##000000
##A162D21.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#407CD6
Deuteranopia (green-blind)
#547FCF
Tritanopia (blue-blind)
#9A7691
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a162d2;
/* rgb */ color: rgb(161, 98, 210);
/* oklch */ color: oklch(61.3% 0.172 308.1);
Tailwind
colors: {
  custom: {
    50: '#bf91e0',
    500: '#a162d2',
    950: '#000000',
  },
}
SCSS
$custom: #a162d2;
$custom-light: #bf91e0;
$custom-dark: #000000;
JSON
{
  "hex": "#a162d2",
  "rgb": {
    "r": 161,
    "g": 98,
    "b": 210
  },
  "hsl": {
    "h": 273.75,
    "s": 55.446,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61336,
    "c": 0.17189,
    "h": 308.1
  },
  "luminance": 0.20966
}

Semantic roles & 50–950 ramp

primary
#A162D2
secondary
#C5DDB3
accent
#C32369
background
#FCF9FD
surface
#F8F1FB
border
#D1CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #A162D2

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

Preview Lab → · Contrast checker → · Palette generator →

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