#A162F2#A162F2

#A162F2 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.3% C 0.209 H 300.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#A162F2
RGBrgb(161, 98, 242)
HSLhsl(266, 85%, 67%)
HSVhsv(266, 60%, 95%)
CMYKcmyk(33.5%, 59.5%, 0%, 5.1%)
CIE-LABlab(54.79, 53.57, -63.20)
CIE-LCHlch(54.79, 82.86, 310.29°)
OKLaboklab(63.31% 0.1066 -0.1793)
OKLCHoklch(63.31% 0.209 300.7)
XYZxyz(35.0888, 22.7230, 86.5246)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A162F2 #B3F262
analogous
#626BF2 #A162F2 #E962F2
triadic
#A162F2 #F2A162 #62F2A1
tetradic
#A162F2 #F2626B #B3F262 #62F2E9
square
#A162F2 #F2626B #B3F262 #62F2E9
split-complementary
#A162F2 #F2E962 #6BF262
monochromatic
#6111C9 #7F29ED #A162F2 #C39BF7 #E5D3FB

Accessibility & contrast

On white

3.79
#A162F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#A162F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A162F2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A162F2#FFFFFF#000000##000000
##A162F21.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0382F7
Deuteranopia (green-blind)
#3382EF
Tritanopia (blue-blind)
#9080A1
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #a162f2;
/* rgb */ color: rgb(161, 98, 242);
/* oklch */ color: oklch(63.3% 0.209 300.7);
Tailwind
colors: {
  custom: {
    50: '#c191f7',
    500: '#a162f2',
    950: '#000000',
  },
}
SCSS
$custom: #a162f2;
$custom-light: #c191f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a162f2",
  "rgb": {
    "r": 161,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 266.25,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.63313,
    "c": 0.20857,
    "h": 300.7
  },
  "luminance": 0.22723
}

Semantic roles & 50–950 ramp

primary
#A162F2
secondary
#DBEFC1
accent
#E10481
background
#FCF9FF
surface
#F8F1FF
border
#D1CBD7
text
#130D17
muted
#827E85

Preview Lab

Preview with #A162F2

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

Preview Lab → · Contrast checker → · Palette generator →

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